Remove address_space(1) typecast and use __ockl_atomic_add_noret_f32 (#1956)

* Remove address_space(1) typecast for ockl_global_atomic_add_f32
* use __ockl_atomic_add_noret_f32

[ROCm/hip commit: cbc3d1713f]
Tá an tiomantas seo le fáil i:
Maneesh Gupta údaraithe agus GitHub tiomanta 2020-03-28 17:28:33 +05:30
1 tuismitheoir 3eea799a53
tiomantas 0ee021d444
2 comhad athraithe
+2 -2

Níor tháinig aon chomhaid le do chuardach

@@ -72,7 +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);
extern "C" __device__ void __ockl_atomic_add_noret_f32(float*, float);
// Introduce local address space
#define __local __attribute__((address_space(3)))
+1 -1
Féach ar an gComhad
@@ -78,7 +78,7 @@ __device__
inline
void atomicAddNoRet(float* address, float val)
{
__ockl_global_atomic_add_f32((__attribute__((address_space(1))) float*)address, val);
__ockl_atomic_add_noret_f32(address, val);
}
__device__