We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac65885 commit 7609ae9Copy full SHA for 7609ae9
core/runtime/DeviceList.cpp
@@ -10,7 +10,10 @@ namespace runtime {
10
DeviceList::DeviceList() {
11
int num_devices = 0;
12
auto status = cudaGetDeviceCount(&num_devices);
13
- TRTORCH_ASSERT((status == cudaSuccess), "Unable to read CUDA capable devices. Return status: " << status);
+ if (status != cudaSuccess) {
14
+ LOG_WARNING("Unable to read CUDA capable devices. Return status: " << status);
15
+ }
16
+
17
for (int i = 0; i < num_devices; i++) {
18
device_list[i] = CudaDevice(i, nvinfer1::DeviceType::kGPU);
19
}
0 commit comments