unified-runtime
unified-runtime copied to clipboard
[NATIVECPU] Report correct memory order capabilities for Native CPU
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.