MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / VirtualDeviceCount

Method VirtualDeviceCount

tensorflow/stream_executor/cuda/cuda_platform.cc:133–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131Platform::Id CudaPlatform::id() const { return cuda::kCudaPlatformId; }
132
133int CudaPlatform::VirtualDeviceCount() const {
134 if (virtual_device_count_ < 0) {
135 return VisibleDeviceCount();
136 } else {
137 return virtual_device_count_;
138 }
139}
140
141port::Status CudaPlatform::SetVirtualDeviceCount(int count) {
142 virtual_device_count_ = count;

Callers

nothing calls this directly

Calls 1

VisibleDeviceCountFunction · 0.85

Tested by

no test coverage detected