I am unable to compile on compute node, since
libatomic.sonot found there.
“libatomic” come with the OS but possibly your sys admins didn’t install it by default. I believe it’s a dependency for the GCC compiler’s development packages. Error while loading shared libraries: libatomic.so.1: - #2 by MatColgrove
You’ll have other issues as well, not just with our compilers but also GNU, so you may want to talk to your sys admins. Granted they may not have install the development packages on purpose thus preventing the compute nodes from being used for development.
And I am unable to link everything on login node, since it requires
libcuda.sowhich is only available on compute nodes…
Typically a program doesn’t need to link against the CUDA driver and it’s not something we’d implicitly add to the link line. Though if you do need it, there’s a stub library you can try linking against:
/install/path/Linux_x86_64/21.7/cuda/11.0/targets/x86_64-linux/lib/stubs/libcuda.so