MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / getRandEngineDescriptor

Function getRandEngineDescriptor

Src/Base/AMReX_RandomEngine.H:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 extern sycl_rng_descr* rand_engine_descr;
38
39 inline
40 sycl_rng_descr* getRandEngineDescriptor () {
41#ifdef AMREX_USE_OMP
42 AMREX_ALWAYS_ASSERT_WITH_MESSAGE(! omp_in_parallel(), "RNG on GPU is not OpenMP thread safe");
43#endif
44 return rand_engine_descr;
45 }
46
47 struct RandomEngine {
48 sycl_rng_engine* engine;

Callers 1

ParallelForRNGFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected