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

Function read_table

src/backend/cuda/kernel/random_engine_mersenne.hpp:55–59  ·  view source on GitHub ↗

Utils

Source from the content-addressed store, hash-verified

53
54// Utils
55static inline __device__ void read_table(uint *const sharedTable,
56 const uint *const table) {
57 const uint *const t = table + (blockIdx.x * TABLE_SIZE);
58 if (threadIdx.x < TABLE_SIZE) { sharedTable[threadIdx.x] = t[threadIdx.x]; }
59}
60
61static inline __device__ void state_read(uint *const state,
62 const uint *const gState) {

Callers 2

uniformMersenneFunction · 0.70
normalMersenneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected