Previous Thread
Next Thread
Print Thread
Joined: Oct 2022
Posts: 14
R
Forum Member
OP Offline
Forum Member
R
Joined: Oct 2022
Posts: 14
Hello CHARMM users and developers,

I am facing an issue while building CHARMM on my Ubuntu 22.04 due to the gcc version. Specifically, I am using gcc 9.5.0 along with cuda 11.0, and encountering an error.

nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
In file included from /apps/cuda/cuda-11.0/include/cuda_runtime.h:83,
from :
/apps/cuda/cuda-11.0/include/crt/host_config.h:139:2: error: #error -- unsupported GNU version! gcc versions later than 9 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
139 | #error -- unsupported GNU version! gcc versions later than 9 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.


I would like to know if there is a way to install CHARMM with this current setup or if I should upgrade or downgrade my gcc and cuda versions. Could you kindly suggest which versions are advisable to use? I would greatly appreciate any help and suggestions you can provide.

Thank you.


Regards
Rajarshi Roy

Joined: Apr 2013
Posts: 37
B
Forum Member
Offline
Forum Member
B
Joined: Apr 2013
Posts: 37
I don't know because the System Requirements section of the document 'Installation Guide Linux' for cuda toolkit 11.0 says it supports GCC 9.x
https://docs.nvidia.com/cuda/archiv...ide-linux/index.html#system-requirements

I think this is a bug in a header file provided by the cuda toolkit.

If it were me, I would do what the error message says and try GCC version 8.

Joined: Sep 2003
Posts: 8,658
Likes: 26
rmv Online Content
Forum Member
Online Content
Forum Member
Joined: Sep 2003
Posts: 8,658
Likes: 26
The default gcc on Ubuntu 22 is version 11, so another possibility is the environment was not set up correctly, either for the 9.5 compiler, or for CUDA.

After the compiler environment is set up, what is the result of the command 'gcc --version' ?


Rick Venable
computational chemist


Moderated by  lennart, rmv 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Release build 20201027)
Responsive Width:

PHP: 7.3.31-1~deb10u5 Page Time: 0.011s Queries: 20 (0.007s) Memory: 0.7383 MB (Peak: 0.7840 MB) Data Comp: Off Server Time: 2023-10-03 18:33:38 UTC
Valid HTML 5 and Valid CSS