Expose support for non-returning atomic FADD

Change-Id: If5359488324477315a9bd4f308a75f606c065b39
이 커밋은 다음에 포함됨:
Maneesh Gupta가 2020-03-05 10:30:52 +05:30를 커밋했습니다
1 부모 3be5375bde
커밋 48f5524fdc
2 파일이 변경됨
+9

검색과 일치하는 파일 없음

+1
파일 보기
@@ -72,6 +72,7 @@ extern "C" __device__ __attribute__((const)) uint __ockl_multi_grid_thread_rank(
extern "C" __device__ __attribute__((const)) int __ockl_multi_grid_is_valid(void);
extern "C" __device__ __attribute__((convergent)) void __ockl_multi_grid_sync(void);
extern "C" __device__ void __ockl_global_atomic_add_f32(__attribute__((address_space(1))) float*, float);
// Introduce local address space
#define __local __attribute__((address_space(3)))
+8
파일 보기
@@ -73,6 +73,14 @@ float atomicAdd(float* address, float val)
return __uint_as_float(r);
}
__device__
inline
void atomicAddNoRet(float* address, float val)
{
__ockl_global_atomic_add_f32((__attribute__((address_space(1))) float*)address, val);
}
__device__
inline
double atomicAdd(double* address, double val)