diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 40b39adbdd1bb6587763ef57eca9a00d735d6926..9ec6ba40fa4f45b0a6a1f2a49ce0d2d5b7c9444f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,8 @@ compile-mandelbrot: stage: compile script: - gcc mandelbrot.c + tags: + - steve-jobs submit-mandelbrot: stage: submit @@ -16,3 +18,5 @@ submit-mandelbrot: artifacts: paths: - new1.ppm + tags: + - steve-jobs diff --git a/mandelbrot.c b/mandelbrot.c index cdcc525e76249ada1b3e9dd49832606e249d1102..688a59cb803027828a6f89d31a2f98cba632cb53 100644 --- a/mandelbrot.c +++ b/mandelbrot.c @@ -16,8 +16,8 @@ int main() { /* screen ( integer) coordinate */ int iX,iY; - const int iXmax = 8000; - const int iYmax = 8000; + const int iXmax = 200; + const int iYmax = 200; /* world ( double) coordinate = parameter plane*/ double Cx,Cy; const double CxMin=-2.5; diff --git a/submit.sub b/submit.sub new file mode 100644 index 0000000000000000000000000000000000000000..2377c2bcd463581faf225d8182e38fb3a3cb923e --- /dev/null +++ b/submit.sub @@ -0,0 +1,40 @@ +#################### +# +# Example Job for HTCondor +# +#################### + +# -------------------------------------------- +# Executable and its arguments +executable = myexe +arguments = -a1 one -a2 two + +# --------------------------------------------------- +# Docker: Executable might be stated in docker image so can be omitted +# If specified, overrides the one stated in docker image +# Need to specify the docker image to use +universe = docker +docker_image = nvidia/cuda + +# ------------------------------------------------- +# Input, Output and Log files +log = $(cluster).$(process).myexe.log +input = $(cluster).$(process).myexe.in +output = $(cluster).$(process).myexe.out +error = $(cluster).$(process).myexe.error + +should_transfer_files = YES + +# ------------------------------------- +# Requirements for the Job +requirements = ( HasStornext == true ) && ( CUDACapability >= 5 ) + +# -------------------------------------- +# Resource requirements +request_GPUs = 1 +request_CPUs = 2 +request_memory = 4096 + +# ----------------------------------- +# Queue commands +queue 1