Re: [OMPI users] Build Open-MPI without OpenCL support

2017-09-09 Thread Nilesh Kokane
On Fri, Sep 8, 2017 at 11:43 PM, Sylvain Jeaugey wrote: > To solve the undefined references to cudaMalloc and cudaFree, you need to > link the CUDA runtime. So you should replace -lcuda by -lcudart. If I compile with the following option: ./mpicc -I/usr/local/cuda-8.0.61/include -lOpenCL test_c

Re: [OMPI users] Build Open-MPI without OpenCL support

2017-09-08 Thread Nilesh Kokane
On Fri, Sep 8, 2017 at 4:45 PM, 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 ? gcc -I/usr/local/cuda-8.0.61/lib64 -lcuda test_cuda_aware.c -o myapp -I/home/kokanen/opt/inc

Re: [OMPI users] Build Open-MPI without OpenCL support

2017-09-08 Thread Sylvain Jeaugey
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 -lOpenC

Re: [OMPI users] Build Open-MPI without OpenCL support

2017-09-08 Thread Gilles Gouaillardet
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 wrote: > On Fri, Sep 8, 2017 at 4:08 PM, Nilesh Kokane > wrote: >> On Fri, Sep 8, 2017 at 3:33

Re: [OMPI users] Build Open-MPI without OpenCL support

2017-09-08 Thread Nilesh Kokane
On Fri, Sep 8, 2017 at 4:08 PM, Nilesh Kokane wrote: > On Fri, Sep 8, 2017 at 3:33 PM, Gilles Gouaillardet > 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?

Re: [OMPI users] Build Open-MPI without OpenCL support

2017-09-08 Thread Nilesh Kokane
On Fri, Sep 8, 2017 at 3:33 PM, Gilles Gouaillardet wrote: > > Nilesh, > > Can you > configure --without-nvidia ... > And see if it helps ? No, I need Nvidia cuda support. //Nilesh Kokane ___ users mailing list users@lists.open-mpi.org https://lists.

Re: [OMPI users] Build Open-MPI without OpenCL support

2017-09-08 Thread Gilles Gouaillardet
Nilesh, Can you configure --without-nvidia ... And see if it helps ? Cheers, Gilles Nilesh Kokane wrote: >Hello,  > > >How can I compile openmpi without the support of open-cl? > > >The only link I could find is [1], but openmpi doesn't configure this option. > >The reason why I'm trying to bu

[OMPI users] Build Open-MPI without OpenCL support

2017-09-08 Thread Nilesh Kokane
Hello, How can I compile openmpi without the support of open-cl? The only link I could find is [1], but openmpi doesn't configure this option. The reason why I'm trying to build openmpi without open-cl is it throws the following errors even with the nvidia installed opencl. ./mpicc -I/usr/local