Le 04/06/2015 00:00, Fabricio Cannini a écrit :
> Hi Brice, thanks for answering.
>
> Strangely, xml_libxml and pci works fine as plugins, but nvml and cuda
> not. I had no trouble making the 'pci' and 'xml_libxml' plugins link
> to their respective libraries, leaving 'libhwloc.so' alone, but no
> dice with 'nvml' or 'cuda'.
>
> I've managed to find the offending link line:
> ========================================================================
> libtool: link: gcc -shared  -fPIC -DPIC  .libs/topology.o
> .libs/traversal.o .libs/distances.o .libs/components.o .libs/bind.o
> .libs/bitmap.o .libs/pci-common.o .libs/diff.o .libs/misc.o
> .libs/base64.o .libs/topology-noos.o .libs/topology-synthetic.o
> .libs/topology-custom.o .libs/topology-xml.o
> .libs/topology-xml-nolibxml.o .libs/topology-xml-libxml.o
> .libs/topology-pci.o .libs/topology-linux.o .libs/topology-x86.o   -lm
> -lnuma -lltdl -lpciaccess -lxml2 -L/usr/local/cuda-6.5/lib64 -lcudart
> -L/usr/src/gdk/nvml/lib -lnvidia-ml  -O2   -Wl,-soname
> -Wl,libhwloc.so.5 -o .libs/libhwloc.so.5.6.1
> =========================================================================
>
> '-L/usr/local/cuda-6.5/lib64 -lcudart -L/usr/src/gdk/nvml/lib
> -lnvidia-ml' should not be here, right ?

Yes, this part should only hwloc_cuda_la_LDFLAGS

> Inside 'src/Makefile', the commenting mechanism of
> 'hwloc_xml_libxml_la_*', 'hwloc_cuda_la_*', 'hwloc_nvml_la_*',
> 'hwloc_pci_la_*' seems to be working fine ( uncommenting when set to
> be made as plugins ).

Can you send your src/Makefile (before your change) ?

Brice

Reply via email to