-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add spack variant for MPI GPU support #1102
Conversation
cscs-ci run |
1d92403
to
39c25d8
Compare
cscs-ci run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can just think of GPU-aware MPI, so something like mpi-gpu-aware
or gpu-aware-mpi
. But not sure it is a good idea to "separate" the variant name from the actual config option in CMake.
Yeah, I mainly wanted to keep them consistent, but "GPU-aware MPI" is also a good option. Note that we haven't released a version with the fixed CMake variables nor pushed the option upstream to spack, so there's still room to rename it. "GPU-aware MPI" was not an option in #1088, but I think it probably should've been an option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like gpu-aware-mpi
as suggested by @albestro (also in CMake), sounds a bit clearer. But I don't really mind.
It's not worth to expose DLAF_WITH_MPI_GPU_SUPPORT_FORCE_CONTIGUOUS
to users?
In that case I suppose the alternative would be:
I like this as well and I'll happily change it. @rasolca, @aurianer, thoughts? I think in #1088 I was quite biased by the MPICH environment variable
I wouldn't at this point but happy to be overruled. My reasoning is that with the benchmarks so far forcing it to be contiguous is never slower and often a lot faster so I consider turning it off pretty much a debugging switch and nothing more. Note that the CMake variable also defaults it to on. If we have enough results to support that it never makes sense to disable it we could just remove the CMake option. |
Yes, I totally get this. My reasoning is that I often compile DLA-Future as a dependency in Spack, and having these options exposed is often useful. But I'm likely the only (?) person to benefit from this (i.e. an actual CP2K user should not care about a "debugging switch"), so I'm happy to leave it out if that's less confusing/error prone. (I can always add a custom Spack package on my end if needed... And make @albestro cringe ;) ).
I would consider this carefully. Isn't it possible that in the future the situation will be reversed? |
Yeah, I get this too... I suppose this is a bit similar to the |
cscs-ci run |
cscs-ci run |
cscs-ci run |
I've initially set it to force contiguous buffers always (it's a
cmake_dependent_option
so it's off ifDLAF_WITH_MPI_GPU_SUPPORT
is off).Suggestions for naming etc. welcome.