#1732: hw fails to link with cuda --------------------+------------------------------------------------------- Reporter: knarf | Owner: Type: defect | Status: new Priority: major | Milestone: Component: Other | Version: development version Keywords: | --------------------+------------------------------------------------------- I get link errors like this: {{{ /home/knarf/psamr/configs/sim/scratch/external/hwloc/lib/libhwloc.a (topology-cuda.o): In function `hwloc_cuda_backend_notify_new_object': /home/knarf/psamr/configs/sim/scratch/build/hwloc/hwloc-1.7.2/src /topology-cuda.c:122: undefined reference to `cudaGetDeviceProperties' /home/knarf/psamr/configs/sim/scratch/external/hwloc/lib/libhwloc.a (topology-cuda.o): In function `hwloc_cuda_query_devices': /home/knarf/psamr/configs/sim/scratch/build/hwloc/hwloc-1.7.2/src /topology-cuda.c:38: undefined reference to `cudaGetDeviceCount' /home/knarf/psamr/configs/sim/scratch/external/hwloc/lib/libhwloc.a (topology-cuda.o): In function `hwloc_cudart_get_device_pci_ids': /home/knarf/psamr/configs/sim/scratch/build/hwloc/hwloc-1.7.2/include/hwloc/cudart.h:49: undefined reference to `cudaGetDeviceProperties' collect2: error: ld returned 1 exit status }}}
hwloc is built (system version present, but deemed too old). The configuration is using the standard debian option list (on spine). Everything is dev-version, clean checkout.
It seems to me that hwloc picks up a cuda dependency (present on system), but the linker isn't told about it (no cuda present in Cactus config).