-
Notifications
You must be signed in to change notification settings - Fork 9
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
request for GPU specific install instructions #49
Comments
Welcome @shimwell to the GPU party! Yes, unfortunately, the GPU branch here is not documented at all yet. To compile for an NVIDIA A100 with the LLVM clang compiler, you'd want your cmake line to look something like:
There are other presets available in the Currently the NVIDIA nvhpc openmp compiler is not working for OpenMC (at least the last time I tried it 6 months ago), so I'd highly recommend using clang. I think v16 or newer of clang should work. We do have a repo setup that has some scripts that make it easier for people to install and run OpenMC + dependencies at https://github.com/jtramm/openmc_offloading_builder Another item to note is there are some new commands used to control the runtime behavior of OpenMC. If using:
The code will run on the host CPU in history-based mode pretty much as normal. There should be a report at the end of the code that confirms where/how the code ran. To run on GPU in the more optimal event-based mode, you'll need to run something like:
The last area to be aware of when coming from CPU is that much larger problem sizes (in terms of number of particles/batch) are required to saturate the GPU. Running 50,000 particles/batch will result in awful performance on the GPU -- typically performance doesn't saturate until 10 million particles/batch or more. I'll leave this issue open to remind us to add in some documentation so that it's at least clear how to install/use the GPU offloading branch. Let me know though if you have other questions in the interim. |
Super super I've been updating my script at the top of this issue to make it a bit closer to installing on a basic desktop with Nvidia GPU. I was interested to see that there are presents for different GPUs which I had not anticipated. I see these are all workstation cards, are there any any possibilities of adding desktop cards like the NVIDIA RTX A2000 or is a workstation card required |
Desktop cards work as well! I've run locally on my RTX 3080. Note that some NVIDIA consumer cards have significantly reduced speed for FP64 operations, so performance may be considerably lower than for HPC cards. The |
Hi everyone over here on the GPU fork
I was just take a look at installing this and running a few models.
Is there any chance of a few pointers for getting up and started with the install on a NVIDIA card.
I checked to see if the install.rst has any hints or the CI has any hints but I couldn't see any
OMP_TARGET_OFFLOAD
specific instructions.so far I have this but should I add some args to the cmake step?
The text was updated successfully, but these errors were encountered: