From f59c512bda7c1d2d222c13263663a910eb0c6786 Mon Sep 17 00:00:00 2001
From: Will Morris <williamdunstanmorris@gmail.com>
Date: Mon, 3 Dec 2018 09:58:13 +0000
Subject: [PATCH] Changed tag name for runner and setup new runner for macosx

---
 .gitlab-ci.yml |  4 ++++
 mandelbrot.c   |  4 ++--
 submit.sub     | 40 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 2 deletions(-)
 create mode 100644 submit.sub

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 40b39ad..9ec6ba4 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 cdcc525..688a59c 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 0000000..2377c2b
--- /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
-- 
GitLab