Skip to content

Commit

Permalink
[OpenMP] HSA_ENABLE_SDMA visible in libomptarget tests (#80860)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jplehr committed Feb 6, 2024
1 parent 299e5fe commit 6ce4181
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openmp/libomptarget/test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ if 'LIBOMPTARGET_LOCK_MAPPED_HOST_BUFFERS' in os.environ:
if 'OMP_TARGET_OFFLOAD' in os.environ:
config.environment['OMP_TARGET_OFFLOAD'] = os.environ['OMP_TARGET_OFFLOAD']

if 'HSA_ENABLE_SDMA' in os.environ:
config.environment['HSA_ENABLE_SDMA'] = os.environ['HSA_ENABLE_SDMA']

# set default environment variables for test
if 'CHECK_OPENMP_ENV' in os.environ:
test_env = os.environ['CHECK_OPENMP_ENV'].split()
Expand Down

0 comments on commit 6ce4181

Please sign in to comment.