-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenMPI builds with CUDA and OpenCL dependency even with --with-cuda=no option #4219
Comments
@sjeaugey Can you look into this? |
There is no reference to OpenCL in the CUDA-aware code. My only guess as to where those dependencies are coming from is hwloc. @bgoglin do you think it's possible that hwloc within Open MPI is compiling some CUDA and OpenCL support, creating this dependency ? |
A quick look in |
Seems like a bug -- we should have the hwloc component honor the top-level Open MPI I'm guessing that this issue is present in most (all?) versions of Open MPI. |
Yes, very likely present forever. Note that hwloc's OpenCL code is actually only useful for AMD GPU, not for NVIDIA. But it builds whenever OpenCL is detected.
|
I'd say apply both. I don't think your patch will disable OpenCL because hwloc's configure options for CUDA and OpenCL are independent. |
#4245 updated. |
Background information
Tested on version 2.1.1 from source tarball.
Details of the problem
I tried to build OpenMPI from source with the following script:
Then I checked mpiexec dependecies with ldd command and found, that there are still dependencies on libOpenCL.so and libcudart.so. Of course on the server without these libraries this program do not work.
The text was updated successfully, but these errors were encountered: