MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / shfl_down_sync

Function shfl_down_sync

src/backend/cuda/kernel/shfl_intrinsics.hpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46//__shfl_down_sync wrapper
47template<typename T>
48__device__ T shfl_down_sync(T var, int delta) {
49#if (CUDA_VERSION >= 9000)
50 return __shfl_down_sync(FULL_MASK, var, delta);
51#else
52 return __shfl_down(var, delta);
53#endif
54}
55// specialization for cfloat
56template<>
57inline __device__ cfloat shfl_down_sync(cfloat var, int delta) {

Callers 3

test_needs_reductionFunction · 0.85
reduce_blocks_by_keyFunction · 0.85
reduce_blocks_dim_by_keyFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_needs_reductionFunction · 0.68