SWDEV-557828 - fix hip-tests on cuda (#1152)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>
此提交包含在:
1 父節點
f578f39f0a
當前提交
27ec19116d
13 file 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()
|
||||
|
||||
Reference in new issue
封鎖使用者