Skip to content
Permalink
Browse files

Merge #3150

3150: Add new AMD GPU id to CI exclusion list r=RudolfWeeber a=jngrad

Fixes #3147, until a better solution is found to improve the reliability of Python tests running on GPUs

Co-authored-by: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de>
  • Loading branch information...
bors and jngrad committed Sep 10, 2019
2 parents b814c25 + abd0937 commit 45a8784542a787e40412b573c0ce710ecd6275d5
Showing with 5 additions and 1 deletion.
  1. +5 −1 testsuite/python/unittest_decorators.py
@@ -17,6 +17,7 @@
import sys
import unittest
import espressomd # pylint: disable=import-error
from espressomd.utils import to_str


def _id(x):
@@ -54,6 +55,9 @@ def skipIfMissingGPU(skip_ci_amd=False):
return unittest.skip("Skipping test: no GPU available")
# special case for our CI infrastructure: disable specific GPU tests
# for AMD GPUs, see https://github.com/espressomd/espresso/pull/2653
if skip_ci_amd and str(espressomd.cuda_init.CudaInitHandle().device_list[0]) == "Device 687f":
ci_amd_gpus = {"Device 687f", "Vega 10 XT [Radeon RX Vega 64]"}
devices = espressomd.cuda_init.CudaInitHandle().device_list
current_device_id = espressomd.cuda_init.CudaInitHandle().device
if skip_ci_amd and to_str(devices[current_device_id]) in ci_amd_gpus:
return unittest.skip("Skipping test: AMD GPU")
return _id

0 comments on commit 45a8784

Please sign in to comment.
You can’t perform that action at this time.