Skip to content

Commit fdf8ac7

Browse files
authored
[SYCL][ESIMD] Fix host compilation issue for atomic store (#7823)
This is to fix host compilation issue for lsc_atomic_update for store operation
1 parent 8269b59 commit fdf8ac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/include/sycl/ext/intel/esimd/detail/atomic_intrin.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ template <typename Ty> inline Ty atomic_store(Ty *ptr, Ty val) {
3939
// TODO: Windows will be supported soon
4040
__ESIMD_UNSUPPORTED_ON_HOST;
4141
#else
42-
Ty ret = atomic_load<Ty>((CmpxchgTy<Ty> *)ptr);
43-
__atomic_store_n((CmpxchgTy<Ty> *)ptr, val, __ATOMIC_SEQ_CST);
42+
Ty ret = atomic_load<Ty>(ptr);
43+
__atomic_store_n(ptr, val, __ATOMIC_SEQ_CST);
4444
return ret;
4545
#endif
4646
}

0 commit comments

Comments
 (0)