Skip to content

Commit 1ab256b

Browse files
authored
Merge pull request #12157 from wenduwan/revert_check_cuda_device
Revert "accelerator/cuda: Check for cuda devices"
2 parents 76c62fd + 94278b1 commit 1ab256b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

opal/mca/accelerator/cuda/accelerator_cuda_component.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,7 @@ static opal_accelerator_base_module_t* accelerator_cuda_init(void)
188188
if (!opal_cuda_support) {
189189
return NULL;
190190
}
191-
int count = 0;
192-
/* If cuInit fails or there are no cuda capable devices, return NULL. */
193-
if (cuInit(0)) {
194-
return NULL;
195-
}
196-
CUresult ret = cuDeviceGetCount(&count);
197-
if (ret || count == 0) {
198-
return NULL;
199-
}
191+
200192
opal_accelerator_cuda_delayed_init();
201193
return &opal_accelerator_cuda_module;
202194
}

0 commit comments

Comments
 (0)