#1732: hwloc in Cactus fails to link with cuda ---------------------+------------------------------------------------------ Reporter: knarf | Owner: Type: defect | Status: new Priority: major | Milestone: Component: Other | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------
Comment (by eschnett):
Ah yes, the joys of building late... We need to tell Cactus what libraries we want before hwloc is installed, i.e. before its pkgconfig file is written. The standard solutions are either (1) explicitly disable CUDA integration in hwloc, or (2) add these libraries to LDFLAGS and LIBS for this particular machine. Note that setting LIBS overwrites, so you'll need to manually add the automatically detected libraries as well.