unified-runtime icon indicating copy to clipboard operation
unified-runtime copied to clipboard

[NATIVECPU] Report correct memory order capabilities for Native CPU

Open PietroGhg opened this issue 1 year ago • 0 comments

Currently the Native CPU backend implements only UR_MEMORY_ORDER_CAPABILITY_FLAG_RELAXED, but the adapter reports all the memory order capabilities. This PR addressed it by reporting only UR_MEMORY_ORDER_CAPABILITY_FLAG_RELAXED. intel/llvm PR: https://github.com/intel/llvm/pull/13469 This makes it so the AtomicRef/sub_local.cpp, AtomicRef/atomic_memory_order_acq_rel.cpp and AtomicRef/load_local.cpp tests (that check for the supported memory order capabilities) do not execute the unsupported atomics operations.

PietroGhg avatar Apr 18 '24 07:04 PietroGhg