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

Method CudaGPU

src/core/device/cuda_gpu.cc:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52const int kNumCudaStream = 1;
53
54CudaGPU::CudaGPU(int id) : Device(id, kNumCudaStream) {
55 MemPoolConf conf;
56 conf.add_device(id);
57 pool_ = std::make_shared<CnMemPool>(conf);
58 Setup();
59}
60
61CudaGPU::CudaGPU(int id, std::shared_ptr<DeviceMemPool> pool)
62 : Device(id, kNumCudaStream) {

Callers

nothing calls this directly

Calls 1

SetupFunction · 0.85

Tested by

no test coverage detected