[PATCH] D42814: [buildbot] Updated CUDA buildbot config.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 14:30:29 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL324023: [buildbot] Updated CUDA buildbot config. (authored by tra, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D42814?vs=132466&id=132478#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D42814

Files:
  zorg/trunk/buildbot/osuosl/master/config/builders.py
  zorg/trunk/zorg/buildbot/builders/CUDATestsuiteBuilder.py


Index: zorg/trunk/buildbot/osuosl/master/config/builders.py
===================================================================
--- zorg/trunk/buildbot/osuosl/master/config/builders.py
+++ zorg/trunk/buildbot/osuosl/master/config/builders.py
@@ -1375,12 +1375,12 @@
                      stage1_config='Release',
                      extra_cmake_args=[
                          '-DLLVM_ENABLE_ASSERTIONS=ON',
-                         "-DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang-3.8",
-                         "-DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++-3.8"
+                         "-DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang",
+                         "-DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang"
                      ],
                      externals="/home/botanist/bots/externals",
-                     gpu_arch_list=["sm_35"],
-                     gpu_devices=[0],   # K40c.
+                     gpu_arch_list=["sm_35", "sm_61"],
+                     gpu_devices=[2, 0], # K40c(sm_35), GTX1070(sm_61)
                      extra_ts_cmake_args=[],
                      enable_thrust_tests=False,
          ),
Index: zorg/trunk/zorg/buildbot/builders/CUDATestsuiteBuilder.py
===================================================================
--- zorg/trunk/zorg/buildbot/builders/CUDATestsuiteBuilder.py
+++ zorg/trunk/zorg/buildbot/builders/CUDATestsuiteBuilder.py
@@ -75,12 +75,7 @@
         'PATH': WithProperties("%(workdir)s/" + clang_build_dir +
                                "/bin:${PATH}"),
     }
-    # Limit GPUs visible to CUDA.
-    if gpu_devices:
-        cuda_test_env["CUDA_VISIBLE_DEVICES"] = ",".join(
-            str(x) for x in gpu_devices)
     merged_env.update(cuda_test_env)
-
     ts_build_dir = 'test-suite-build'
 
     # Completely remove test suite build dir.
@@ -147,15 +142,32 @@
         workdir=ts_build_dir,
         env=merged_env))
 
-    f.addStep(NinjaCommand(
-        name='run simple CUDA tests',
-        targets=["check-cuda-simple"],
-        jobs=1, # lit will parallelize the jobs
-        haltOnFailure=True,
-        description=["Running simple CUDA tests"],
-        descriptionDone=["simple CUDA tests done."],
-        workdir=ts_build_dir,
-        env=merged_env))
+    # Limit GPUs visible to CUDA.
+    if gpu_devices:
+        for gpu_id in gpu_devices:
+            # make ID a string as it may be either an integer or a UUID string.
+            gpu_id = str(gpu_id)
+            gpu_env = dict(merged_env)
+            gpu_env["CUDA_VISIBLE_DEVICES"] = gpu_id
+            f.addStep(NinjaCommand(
+                name='run simple CUDA tests on gpu %s' % gpu_id,
+                targets=["check-cuda-simple"],
+                jobs=1, # lit will parallelize the jobs
+                haltOnFailure=True,
+                description=["Running simple CUDA tests on GPU %s" % gpu_id],
+                descriptionDone=["simple CUDA tests on GPU %s done." % gpu_id],
+                workdir=ts_build_dir,
+                env=gpu_env))
+    else:
+        f.addStep(NinjaCommand(
+            name='run simple CUDA tests',
+            targets=["check-cuda-simple"],
+            jobs=1, # lit will parallelize the jobs
+            haltOnFailure=True,
+            description=["Running simple CUDA tests"],
+            descriptionDone=["simple CUDA tests done."],
+            workdir=ts_build_dir,
+            env=merged_env))
 
     # If we've enabled thrust tests, build them now.
     # WARNING: This takes a lot of time to build.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42814.132478.patch
Type: text/x-patch
Size: 3526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180201/d88e560f/attachment.bin>


More information about the llvm-commits mailing list