youkely/InfrasCal
cmake/LibraryConfig.cmake
:93
add_definitions(-DHAVE_CUDA)
add_definitions(-DHAVE_CUDA)
message(STATUS "defined HAVE_CUDA")
add_definitions(-DHAVE_CUDA)
target_compile_definitions(${args_LIB_NAME} PUBLIC -DHAVE_CUDA)
target_compile_definitions(resize PUBLIC -DHAVE_CUDA)
add_definitions(-DHAVE_CUDA)
add_definitions(-DHAVE_CUDA=1)
add_library(hwloc
${TOPDIR}/hwloc/topology.c
${TOPDIR}/hwloc/traversal.c
${TOPDIR}/hwloc/distances.c
${TOPDIR}/hwloc/memattrs.c
${TOPDIR}/hwloc/cpukinds.c
${TOPDIR}/hwloc/components.c
${TOPDIR}/hwloc/bind.c
${TOPDIR}/hwloc/bitmap.c
${TOPDIR}/hwloc/pci-common.c
${TOPDIR}/hwloc/diff.c
${TOPDIR}/hwloc/shmem.c
${TOPDIR}/hwloc/misc.c
${TOPDIR}/hwloc/base64.c
${TOPDIR}/hwloc/topology-noos.c
${TOPDIR}/hwloc/topology-synthetic.c
${TOPDIR}/hwloc/topology-xml.c
${TOPDIR}/hwloc/topology-xml-nolibxml.c
${TOPDIR}/hwloc/topology-windows.c
${TOPDIR}/hwloc/topology-x86.c
$<$<BOOL:${HWLOC_HAVE_LIBXML2}>:${TOPDIR}/hwloc/topology-xml-libxml.c>
$<$<BOOL:${HWLOC_HAVE_OPENCL}>:${TOPDIR}/hwloc/topology-opencl.c>
$<$<BOOL:${HAVE_CUDA}>:${TOPDIR}/hwloc/topology-cuda.c>
)
target_link_libraries(hwloc PRIVATE
$<$<BOOL:${HWLOC_HAVE_LIBXML2}>:LibXml2::LibXml2>
$<$<BOOL:${HWLOC_HAVE_OPENCL}>:OpenCL::OpenCL>
"$<$<BOOL:${HAVE_CUDA}>:CUDA::cudart;CUDA::cuda_driver>"
)
add_definitions(-DHAVE_CUDA=1)
target_compile_definitions(generate_ctest_json PRIVATE HAVE_CUDA)
unset(HAVE_CUDA)
ADD_DEFINITIONS(-DHAVE_CUDA)
ADD_DEFINITIONS(-DHAVE_CUDA)
ADD_DEFINITIONS("-DHAVE_CUDA -DNV_PROPRIETARY_CODE")
add_definitions(-DHAVE_CUDA)
add_definitions(-DHAVE_CUDA)