On 10/28/2016 10:33 AM, Craig tierney wrote:
Sylvain,

If I do not set --with-cuda, I get:

configure:9964: result: no
configure:10023: checking whether CU_POINTER_ATTRIBUTE_SYNC_MEMOPS is declared
configure:10023: gcc -c -DNDEBUG   conftest.c >&5
conftest.c:83:19: fatal error: /cuda.h: No such file or directory
 #include </cuda.h>
                   ^
It looks like your environment has variables that the configure tries to use. You should look the output of :
 env | grep CUDA
and unset them.
Or you can specify --with-cuda=/usr/local/cuda to be sure.

If I specify the path to cuda, the same results as before. In the configure process, the first time cuda.h is tested it works.

configure:9843: checking if --with-cuda is set
configure:9897: result: found (/usr/local/cuda/include/cuda.h)
configure:9964: checking for struct CUipcMemHandle_st.reserved

Good.

But the next time the compile command doesn't add an include to the compile line and the compile fails:

configure:74312: checking for CL/cl_ext.h
configure:74312: result: no
configure:74425: checking cuda.h usability
configure:74425: gcc -std=gnu99 -c -O3 -DNDEBUG  conftest.c >&5
conftest.c:648:18: fatal error: cuda.h: No such file or directory
 #include <cuda.h>
                  ^
compilation terminated.
configure:74425: $? = 1
Is the Open MPI configure explicitely failing ? If not, is the Open MPI compilation failing ? If it works, you should see CUDA support has been compiled in (in ompi_info).

It seems you are fooled by the hwloc configure here : the hwloc configure includes checks for CUDA but we don't need them in Open MPI so they are failing, but you still get CUDA support.

In the latest version of Open MPI, there should be a report at the end of configure explicitely stating if CUDA support has been enabled or not.

Sylvain

-----------------------------------------------------------------------------------
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://rfd.newmexicoconsortium.org/mailman/listinfo/users

Reply via email to