Skip to content

Commit 94278b1

Browse files
committed
Revert "accelerator/cuda: Check for cuda devices"
This reverts commit ae98e04.
1 parent 76c62fd commit 94278b1

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)