[mvapich-discuss] Build issues with CUDA and hwloc

Vladimir Florinski vaf0001 at uah.edu
Fri Oct 14 13:16:22 EDT 2016


This is with mvapich2-2.2. When building with CUDA, the configure script in
contrib/hwloc fails because the compiler is not passed the
-L/path/to/libcudart option. Here is the relevant fragment of the
config.log:


configure:4222: checking whether the C compiler works
configure:4244: gcc -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/
redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/local/cuda/include
-I/home/vladimir/rpmbuild/BUILD/mvapich2-2.2/src/mpl/include
-I/home/vladimir/rpmbuild/BUILD/mvapich2-2.2/src/mpl/incl
ude -I/home/vladimir/rpmbuild/BUILD/mvapich2-2.2/src/openpa/src
-I/home/vladimir/rpmbuild/BUILD/mvapich2-2.2/src/openpa/src -D_REENTRANT
-I/home/vladimir/rpmbuild/BUILD/mvapich2-2.2/src/mpi/rom
io/include -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
conftest.c -lcudart -lcuda -libmad -lrdmacm -libumad -libverbs -ldl -lrt
-lpmi2 -lpthread   >&5
/usr/bin/ld: cannot find -lcudart
collect2: error: ld returned 1 exit status
configure:4248: $? = 1
configure:4286: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "hwloc"
| #define PACKAGE_TARNAME "hwloc"
| #define PACKAGE_VERSION "1.11.2rc2-git"
| #define PACKAGE_STRING "hwloc 1.11.2rc2-git"
| #define PACKAGE_BUGREPORT "http://www.open-mpi.org/projects/hwloc/"
| #define PACKAGE_URL ""
| #define PACKAGE "hwloc"
| #define VERSION "1.11.2rc2-git"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:4291: error: in
`/home/vladimir/rpmbuild/BUILD/mvapich2-2.2/contrib/hwloc':
configure:4293: error: C compiler cannot create executables

I also wonder why mvapich has to build hwloc in the first place. That is a
common library that usually comes with the OS.




-- 
Vladimir Florinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20161014/60d14b2e/attachment.html>


More information about the mvapich-discuss mailing list