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 efc4f85 commit c7ce715Copy full SHA for c7ce715
src/common/common.cu
@@ -11,7 +11,7 @@ int AllVisibleImpl::AllVisible() {
11
// When compiled with CUDA but running on CPU only device,
12
// cudaGetDeviceCount will fail.
13
dh::safe_cuda(cudaGetDeviceCount(&n_visgpus));
14
- } catch(const thrust::system::system_error& err) {
+ } catch(const dmlc::Error &except) {
15
return 0;
16
}
17
return n_visgpus;
src/common/device_helpers.cuh
@@ -956,7 +956,7 @@ class SaveCudaContext {
956
// cudaGetDevice will fail.
957
try {
958
safe_cuda(cudaGetDevice(&saved_device_));
959
- } catch (const thrust::system::system_error & err) {
+ } catch (const dmlc::Error &except) {
960
saved_device_ = -1;
961
962
func();
0 commit comments