[ET Trac] [Einstein Toolkit] #1732: hw fails to link with cuda
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Mon Jan 5 14:53:45 CST 2015
#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).
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1732>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list