MCPcopy Create free account
hub / github.com/apache/singa / SetRandSeed

Method SetRandSeed

src/core/device/cuda_gpu.cc:102–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void CudaGPU::SetRandSeed(unsigned seed) {
103 CHECK(ctx_.curand_generator);
104 CURAND_CHECK(curandSetPseudoRandomGeneratorSeed(ctx_.curand_generator, seed));
105}
106
107void CudaGPU::DoExec(function<void(Context*)>&& fn, int executor) { fn(&ctx_); }
108

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected