[Openmp-commits] [openmp] 6ce4181 - [OpenMP] HSA_ENABLE_SDMA visible in libomptarget tests (#80860)
via Openmp-commits
openmp-commits at lists.llvm.org
Tue Feb 6 08:22:13 PST 2024
Author: Jan Patrick Lehr
Date: 2024-02-06T17:22:09+01:00
New Revision: 6ce418113746c1d8a85012d1f8e22270eb5fdaf1
URL: https://github.com/llvm/llvm-project/commit/6ce418113746c1d8a85012d1f8e22270eb5fdaf1
DIFF: https://github.com/llvm/llvm-project/commit/6ce418113746c1d8a85012d1f8e22270eb5fdaf1.diff
LOG: [OpenMP] HSA_ENABLE_SDMA visible in libomptarget tests (#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 https://github.com/ROCm/ROCm/issues/2616
about a missed synchronization signal.
Added:
Modified:
openmp/libomptarget/test/lit.cfg
Removed:
################################################################################
diff --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg
index d912b622c05ba..fc1d436e51b7b 100644
--- a/openmp/libomptarget/test/lit.cfg
+++ b/openmp/libomptarget/test/lit.cfg
@@ -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()
More information about the Openmp-commits
mailing list