Skip to content

Commit

Permalink
contrib/windows-cmake: actually enable the CUDA backend when detected
Browse files Browse the repository at this point in the history
Forgottin in commit 3ed5667

Thanks to Moritz Kreutzer for the patch.

Closes #651

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Feb 2, 2024
1 parent 3ebb373 commit eeeda4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/windows-cmake/static-components.h.in
Expand Up @@ -12,6 +12,9 @@ HWLOC_DECLSPEC extern const struct hwloc_component hwloc_xml_libxml_component;
#ifdef HWLOC_HAVE_OPENCL
HWLOC_DECLSPEC extern const struct hwloc_component hwloc_opencl_component;
#endif
#ifdef HWLOC_HAVE_CUDART
HWLOC_DECLSPEC extern const struct hwloc_component hwloc_cuda_component;
#endif

static const struct hwloc_component * hwloc_static_components[] = {
&hwloc_noos_component,
Expand All @@ -25,6 +28,9 @@ static const struct hwloc_component * hwloc_static_components[] = {
#ifdef HWLOC_HAVE_OPENCL
&hwloc_opencl_component,
#endif
#ifdef HWLOC_HAVE_CUDART
&hwloc_cuda_component,
#endif
#ifdef HWLOC_HAVE_LIBXML2
&hwloc_xml_libxml_component,
#endif
Expand Down

0 comments on commit eeeda4a

Please sign in to comment.