Skip to content

Commit 6ce4181

Browse files
authored
[OpenMP] HSA_ENABLE_SDMA visible in libomptarget tests (llvm#80860)
Enable the environment variable inside the test environment. This allows to disable SDMA engine transfers as a potential mitigation of flaky OpenMP offloading tests on AMDGPU. Motivated by the open ticket ROCm/ROCm#2616 about a missed synchronization signal.
1 parent 299e5fe commit 6ce4181

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openmp/libomptarget/test/lit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ if 'LIBOMPTARGET_LOCK_MAPPED_HOST_BUFFERS' in os.environ:
3131
if 'OMP_TARGET_OFFLOAD' in os.environ:
3232
config.environment['OMP_TARGET_OFFLOAD'] = os.environ['OMP_TARGET_OFFLOAD']
3333

34+
if 'HSA_ENABLE_SDMA' in os.environ:
35+
config.environment['HSA_ENABLE_SDMA'] = os.environ['HSA_ENABLE_SDMA']
36+
3437
# set default environment variables for test
3538
if 'CHECK_OPENMP_ENV' in os.environ:
3639
test_env = os.environ['CHECK_OPENMP_ENV'].split()

0 commit comments

Comments
 (0)