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

Function philox

src/backend/cuda/kernel/random_engine_philox.hpp:82–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static inline __device__ void philox(uint key[2], uint ctr[4]) {
83 // 10 Rounds
84 philoxRound(m4x32_0, m4x32_1, key, ctr);
85 philoxBump(key);
86 philoxRound(m4x32_0, m4x32_1, key, ctr);
87 philoxBump(key);
88 philoxRound(m4x32_0, m4x32_1, key, ctr);
89 philoxBump(key);
90 philoxRound(m4x32_0, m4x32_1, key, ctr);
91 philoxBump(key);
92 philoxRound(m4x32_0, m4x32_1, key, ctr);
93 philoxBump(key);
94 philoxRound(m4x32_0, m4x32_1, key, ctr);
95 philoxBump(key);
96 philoxRound(m4x32_0, m4x32_1, key, ctr);
97 philoxBump(key);
98 philoxRound(m4x32_0, m4x32_1, key, ctr);
99 philoxBump(key);
100 philoxRound(m4x32_0, m4x32_1, key, ctr);
101 philoxBump(key);
102 philoxRound(m4x32_0, m4x32_1, key, ctr);
103}
104} // namespace kernel
105} // namespace cuda
106} // namespace arrayfire

Callers 2

uniformPhiloxFunction · 0.70
normalPhiloxFunction · 0.70

Calls 2

philoxRoundFunction · 0.70
philoxBumpFunction · 0.70

Tested by

no test coverage detected