SWDEV-557828 - fix hip-tests on cuda (#1152)

Co-authored-by: Rahul Manocha <rmanocha@amd.com>
This commit is contained in:
Rahul ManochaandRahul Manocha authored and GitHub committed 2025-10-07 08:28:56 -07:00
1 parent f578f39f0a
commit 27ec19116d
13 files changed
+331 -332

No files matched your search

@@ -44,11 +44,15 @@ THE SOFTWARE.
#define __HIP_ATOMIC_BACKWARD_COMPAT 1
#endif
#if HT_AMD
#if defined(__has_extension) && __has_extension(clang_atomic_attributes) && __HIP_ATOMIC_BACKWARD_COMPAT
#define HIP_TEST_ATOMIC_BACKWARD_COMPAT_MEMORY [[clang::atomic(fine_grained_memory, remote_memory)]]
#else
#define HIP_TEST_ATOMIC_BACKWARD_COMPAT_MEMORY
#endif
#elif HT_NVIDIA
#define HIP_TEST_ATOMIC_BACKWARD_COMPAT_MEMORY
#endif
#ifdef TEST_CLOCK_CYCLE
#define clock_function() clock64()