-
Notifications
You must be signed in to change notification settings - Fork 98
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
Issues Building Sedov with GPU on Expanse #2234
Comments
When using OpenMPI, the AMReX GNU Make build system chooses to integrate that with CUDA by doing, effectively, nvcc -ccbin=mpicxx. mpicxx will then get evaluated to whatever the real host compiler is (e.g. nvc++ or g++). There is some subtlety in making sure that all of the options set by mpicxx get correctly passed to the host compiler; sometimes various site setups can interfere with the way AMReX is doing it. Can you share the output of |
Thanks for the help @maxpkatz
|
Alright, thanks. Can you share the whole build log? I would like to see some example full build and link lines to better understand the context of the error message. |
One message I'm seeing that is troubling is |
You can ignore that, it's not fatal to the build process. |
Here is the build.log |
OK, thanks. I think this is running up against a limitation in nvcc. nvcc doesn't know what to do with options like -rpath, those are intended for the host compiler/linker. By default nvcc will throw an error if it sees an argument that it doesn't recognize (and that isn't hidden behind an explicit command to pass the option to the host compiler with -Xcompiler). Since this can be annoying to deal with, NVIDIA added the |
It probably also doesn't help that the AMReX build system defaults to using g++ as host compiler even if that's inconsistent with your intent (which, in this case, it is). So you could try building with |
What's result of |
|
I think I think a workaround for this is
This will use It's not clear whether this is a bug in spack or openmpi. |
I have spack installed openmpi on my computer. The link flag looks right.
|
Right, I also see valid link flags on the OpenMPI 3.1.5 that comes with NVHPC 22.3. So it may be specific to how the SDSC OpenMPI module that @joehellmers is using was configured. |
@joehellmers if you could rebuild with the above PR (or latest AMReX development if it's merged before you try it) that will hopefully work around the issue in your case. |
I was able to build after making the identical change to the Make.unknown file. |
Hello,
I'm loading the following modules on Expanse-SDSC.
The when building the linker gives a message
My make file is
Does anybody have any recommendations?
The text was updated successfully, but these errors were encountered: