-
Notifications
You must be signed in to change notification settings - Fork 283
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
Make the CUDA easyblock a bit more generic, to include code samples etc #147
Comments
(building and) installing the samples should be enabled by default, but easy to switch off |
This came up on the EasyBuild mailing list recently (by @ysagon), posting the workaround that @damianam mentioned there here in case people hit this: postinstallcmds = [
'cd %(installdir)s/samples && make SMS="35 37"'
] This works, but the Can we come up with something general that we can include in the What are these samples actually used for? (I'm clueless here...) |
I'm very new to EasyBuild, but ran across this as I work on bootstrapping our PoC cluster. For a sane default, SMS doesn't need to be specified explicitly at all. The Makefiles that ship with the samples set SMS to all the values supported by that version of the CUDA toolkit. It should thus be safe to have the default simply be: postinstallcmds = [
'cd %(installdir)s/samples && make'
] At worst, this results in sample binaries that are slightly larger than necessary, containing pre-optimized kernels for more Shader Model architectures than necessary for the hardware in use. (It's even forward compatible with newer hardware since CUDA will JIT CUDA kernels to run on the latest hardware if an pre-optimized version isn't in the file. See: https://devblogs.nvidia.com/cuda-pro-tip-understand-fat-binaries-jit-caching/ ) Nicer still would be a way to have that
Probably just about as clueless myself, but I do find that I use them as a quick verification step to ensure CUDA is working properly. Something like: $ cd samples/bin/x86_64/linux/release/
$ ./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 2 CUDA Capable device(s)
<snip> |
the issue has been 8 years overdue (!), however it got well handled in @boegel your take? if agreeing, let's close. |
Done in #2374 |
In relation to #145:
We would like cuda.py to support also CUDA samples, v4.x and future versions too.
It basically implies that the easyconfig should have the freedom to define something like
"osdependencies = 'libglut'", if asking for -samples in the installparams:
It also implies that
installparams
should likely be defined/driven from the easyconfig.The text was updated successfully, but these errors were encountered: