To solve the undefined references to cudaMalloc and cudaFree, you need
to link the CUDA runtime. So you should replace -lcuda by -lcudart.
For the OPENCL undefined references, I don't know where those are coming
from ... could it be that hwloc is compiling OpenCL support but not
adding -lOpenCL to the mpicc command, thus causing this issue ?
To work around the issue, I would try to uninstall the opencl libraries
before recompiling Open MPI. Another way could be to add manually the
OpenCL library with -lOpenCL.
On 09/08/2017 04:15 AM, Gilles Gouaillardet wrote:
can you
./mpicc -showme -I/usr/local/cuda-8.0.61/lib64 -lcuda test_cuda_aware.c -o myapp
and double check -lcuda is *after* -lopen-pal ?
Cheers,
Gilles
On Fri, Sep 8, 2017 at 7:40 PM, Nilesh Kokane <nilesh.kokan...@gmail.com> wrote:
On Fri, Sep 8, 2017 at 4:08 PM, Nilesh Kokane <nilesh.kokan...@gmail.com> wrote:
On Fri, Sep 8, 2017 at 3:33 PM, Gilles Gouaillardet
<gilles.gouaillar...@gmail.com> wrote:
Nilesh,
Can you
configure --without-nvidia ...
And see if it helps ?
No, I need Nvidia cuda support.
Or else do you have a way to solve this open-cl errors?
./mpicc -I/usr/local/cuda-8.0.61/lib64 -lcuda test_cuda_aware.c -o myapp
./mpicc: /usr/local/cuda-8.0.61/lib64/libOpenCL.so.1: no version
information available (required by
/home/kokanen/opt/lib/libopen-pal.so.20)
/tmp/cc7KaPDe.o: In function `main':
test_cuda_aware.c:(.text+0x5b): undefined reference to `cudaMalloc'
test_cuda_aware.c:(.text+0xd3): undefined reference to `cudaFree'
/home/kokanen/opt/lib/libopen-pal.so.20: undefined reference to
`clGetPlatformInfo@OPENCL_1.0'
/home/kokanen/opt/lib/libopen-pal.so.20: undefined reference to
`clGetPlatformIDs@OPENCL_1.0'
/home/kokanen/opt/lib/libopen-pal.so.20: undefined reference to
`clGetDeviceInfo@OPENCL_1.0'
/home/kokanen/opt/lib/libopen-pal.so.20: undefined reference to
`clGetDeviceIDs@OPENCL_1.0'
Pointing to -L/usr/local/cuda-8.0.61/lib64 while compiling with mpicc
didn't help.
Any clues?
--
Regards,
Nilesh Kokane
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may
contain
confidential information. Any unauthorized review, use, disclosure or
distribution
is prohibited. If you are not the intended recipient, please contact the
sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users