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.
2 parents 0f54160 + f96d9b8 commit 4dae142Copy full SHA for 4dae142
ompi/mpiext/cuda/c/mpiext_cuda.c
@@ -20,13 +20,12 @@
20
#include <stdio.h>
21
#include <string.h>
22
23
-#include "opal/constants.h"
24
-#include "opal/runtime/opal_params.h"
+#include "opal/mca/accelerator/base/base.h"
25
#include "ompi/mpiext/cuda/c/mpiext_cuda_c.h"
26
27
/* If CUDA-aware support is configured in, return 1. Otherwise, return 0.
28
* This API may be extended to return more features in the future. */
29
int MPIX_Query_cuda_support(void)
30
{
31
- return opal_built_with_cuda_support && opal_cuda_runtime_initialized;
+ return 0 == strcmp(opal_accelerator_base_selected_component.base_version.mca_component_name, "cuda");
32
}
0 commit comments