Skip to content

Commit

Permalink
Revert "[OpenMP] Fix two usm tests for amdgpus." (#77983)
Browse files Browse the repository at this point in the history
Reverts #77851
  • Loading branch information
carlobertolli committed Jan 12, 2024
1 parent 4c41449 commit 93efa2b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
5 changes: 1 addition & 4 deletions openmp/libomptarget/test/lit.cfg
Expand Up @@ -117,10 +117,7 @@ if config.libomptarget_current_target.startswith('nvptx'):
# If the architecture is invalid, assume it is supported.
supports_unified_shared_memory = True
if config.libomptarget_current_target.startswith('amdgcn'):
if not (config.amdgpu_test_arch == "gfx908" or
config.amdgpu_test_arch == "gfx90a" or
config.amdgpu_test_arch == "gfx942") :
supports_unified_shared_memory = False
supports_unified_shared_memory = False
if supports_unified_shared_memory:
config.available_features.add('unified_shared_memory')

Expand Down
1 change: 0 additions & 1 deletion openmp/libomptarget/test/lit.site.cfg.in
Expand Up @@ -10,7 +10,6 @@ config.test_extra_flags = "@OPENMP_TEST_FLAGS@"
config.cuda_path = "@CUDA_TOOLKIT_ROOT_DIR@"
config.cuda_libdir = "@CUDA_LIBDIR@"
config.cuda_test_arch = "@LIBOMPTARGET_DEP_CUDA_ARCH@"
config.amdgpu_test_arch = "@LIBOMPTARGET_AMDGPU_DETECTED_ARCH_LIST@"
config.libomptarget_obj_root = "@CMAKE_CURRENT_BINARY_DIR@/@CURRENT_TARGET@"
config.library_dir = "@LIBOMPTARGET_LIBRARY_DIR@"
config.llvm_library_dir = "@LIBOMPTARGET_LLVM_LIBRARY_DIR@"
Expand Down
7 changes: 4 additions & 3 deletions openmp/libomptarget/test/unified_shared_memory/api.c
@@ -1,9 +1,10 @@
// RUN: %libomptarget-compile-generic
// RUN: env HSA_XNACK=1 \
// RUN: %libomptarget-run-generic | %fcheck-generic
// RUN: %libomptarget-compile-run-and-check-generic
// XFAIL: nvptx64-nvidia-cuda
// XFAIL: nvptx64-nvidia-cuda-LTO

// Fails on amdgpu with error: GPU Memory Error
// UNSUPPORTED: amdgcn-amd-amdhsa

#include <omp.h>
#include <stdio.h>

Expand Down
@@ -1,11 +1,11 @@
// RUN: %libomptarget-compile-generic
// RUN: env HSA_XNACK=1 \
// RUN: %libomptarget-run-generic | %fcheck-generic
// RUN: %libomptarget-compile-run-and-check-generic

// REQUIRES: unified_shared_memory
// UNSUPPORTED: clang-6, clang-7, clang-8, clang-9

// Fails on amdgpu with error: GPU Memory Error
// Fails on nvptx with error: an illegal memory access was encountered
// XFAIL: amdgcn-amd-amdhsa
// XFAIL: nvptx64-nvidia-cuda
// XFAIL: nvptx64-nvidia-cuda-LTO

Expand Down

0 comments on commit 93efa2b

Please sign in to comment.