-
Notifications
You must be signed in to change notification settings - Fork 30
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
Error: unknown type name 'wchar_t' with NVIDIA compiler #141
Comments
Perhaps it's possible to inject the missing include through the command line? E.g. via |
ah nice, the following indeed seems to do the trick:
|
@inailuig with this one does not need to edit |
We should add a Installation troubleshooting section to the docs.. |
yep, just need to install mpi4py with the other flag first |
We could do that, on the other hand information like this becomes stale incredibly fast. I would personally just rely on people finding this issue if the same problem crops up again. |
In one of EPFL's GPU clusters (Izar) we need to use OpenMPI compiled with Nvidia's compilers to have direct GPU-to-GPU communication in MPI4jax, and @inailuig found out how to do it.
I'll post the instructions here (just for the sake of completeness)
then we install jax and MPI using a weird flag (don't ask me why, but it won't work otherwise. we think it's because of Nvidia's compiler being weird)
Then to compile mpi4jax we need to edit python's include files
(seems like it's a python3.7 problem with the nvidia clang; would have to include it in mpi_xla_bridge_gpu.c before Python.h but idk how to do that in cython)
"""
Now the weird thing is that if I now run
the installation will fail with error
this error suggests that when compiling with
pip
the compiler is not looking at the include files from the current distribution (that we edited) but to the ones of the original python version.To workaround we have to run
this way pip/python picks up the modified include files.
--
Of course editing the python's include files is not good. But if users can't install mpi4jax, it's our problem.
After all, mpi4py compiles just fine.
Maybe we can do something to work around Nvidia's bugs?
The text was updated successfully, but these errors were encountered: