|
超算管理员装了gcc13.3,我也module load了,which gcc, gcc -v,以及检查$PATH都是gcc13.3没有问题,然而安装的时候还是指向了gcc8,是不是Rocky Linux系统的一个bug。
- (base) [c.junchi@soursop aocc-compiler-4.2.0]$ which gcc
- /project/compute/compilers/gcc-13.3.0/bin/gcc
- (base) [c.junchi@soursop aocc-compiler-4.2.0]$ gcc -v
- Using built-in specs.
- COLLECT_GCC=gcc
- COLLECT_LTO_WRAPPER=/project/engineering/compilers/gcc-13.3.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/13.3.0/lto-wrapper
- Target: x86_64-pc-linux-gnu
- Configured with: ../gcc-13.3.0/configure --prefix=/project/compute/compilers/gcc-13.3.0 --enable-languages=c,c++,fortran,go,objc,obj-c++
- Thread model: posix
- Supported LTO compression algorithms: zlib zstd
- gcc version 13.3.0 (GCC)
复制代码- (base) [c.junchi@soursop aocc-compiler-4.2.0]$ echo -e "PATH:\n${PATH//:/\\n}\n"
- PATH:
- /home/research/c.junchi/opt/amd/AOCC-gcc13/aocc-compiler-4.2.0/share/opt-viewer
- /home/research/c.junchi/opt/amd/AOCC-gcc13/aocc-compiler-4.2.0/bin
- /project/compute/compilers/gcc-13.3.0/bin
复制代码- (base) [c.junchi@soursop aocc-compiler-4.2.0]$ bash install.sh
- Successfully generated setenv file:/home/research/c.junchi/opt/amd/AOCC-gcc13/setenv_AOCC.sh
- AOCC installation is complete
- Compiler has been installed in following location:
- ~/opt/amd/AOCC-gcc13/aocc-compiler-4.2.0/bin/clang
- ~/opt/amd/AOCC-gcc13/aocc-compiler-4.2.0/bin/clang++
- ~/opt/amd/AOCC-gcc13/aocc-compiler-4.2.0/bin/flang
- Steps to setup AOCC:
- (1) Setup AOCC environment by executing below command:
- source /home/research/c.junchi/opt/amd/AOCC-gcc13/setenv_AOCC.sh
- (2) For location and version of AOCC's clang enter commands given below
- which clang
- clang -v
- (base) [c.junchi@soursop aocc-compiler-4.2.0]$ source /home/research/c.junchi/opt/amd/AOCC-gcc13/setenv_AOCC.sh
- (base) [c.junchi@soursop aocc-compiler-4.2.0]$ which clang
- ~/opt/amd/AOCC-gcc13/aocc-compiler-4.2.0/bin/clang
- (base) [c.junchi@soursop aocc-compiler-4.2.0]$ clang -v
- AMD clang version 16.0.3 (CLANG: AOCC_4.2.0-Build#89 2023_12_13)
- Target: x86_64-unknown-linux-gnu
- Thread model: posix
- InstalledDir: /home/research/c.junchi/opt/amd/AOCC-gcc13/aocc-compiler-4.2.0/bin
- Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/8
- Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/8
复制代码
|
|