MCPcopy Create free account
hub / github.com/OpenPPL/ppl.nn / InitCudaThread

Function InitCudaThread

tools/test_nccl.cc:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43static void InitCudaThread() {
44 #pragma omp parallel num_threads(num_gpus)
45 {
46 auto tid = omp_get_thread_num();
47 CUDA_CHECK(cudaSetDevice(tid), "cudaSetDevice");
48 }
49}
50
51static void InitNccl(ncclComm_t *comms) {
52 ncclUniqueId uuid;

Callers 2

mainFunction · 0.85
DoInitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected