|
|
[求助]
gcc或者icc
求助帮忙解决这个问题。文字是复制好的,和图片内容是一样的。需要执行后不出错,谢谢。
To achieve this I use to create a local directory to store the libraries and header files. When using intel compilers (e.g. icc), I use ~/usr-intel
export USR=usr-intel
mkdir -p $HOME/$USR
When I want to use gnu compilers (e.g. gcc) to compile the libraries, I use
export USR=usr
mkdir -p $HOME/$USR
I also use to download software packages to ~/soft. All these are consistent with the wiki page How to compile Qbox.
export SOFT=soft
mkdir -p $HOME/$SOFT
You may want to put the lines export USR=usr; export SOFT=soft in your ~/.bash_profile file, so that they are automatically set when you log-in.
This document does not cover the usage of pimc++ but just the compilation, a manual of pimc++ is provided in the pimc++ main page.
First step is to choose a compiler and stick to it for compiling the different libraries and the final pimc++ executable. On su-ahpcrc, the intel mpi compiler is selected by,
mpi-selector --set openmpi14_intel-1.4.1
Pimc++ is known to have issues with mpich2 [1]. That's why we choose the openmpi version here.
To use gnu mpi compilers, I use the following on su-ahpcrc
mpi-selector --set openmpi_gcc-1.2.6
After the mpi-selector command, you need to log-out the cluster and log-in again. Use the command which mpicc to make sure you are indeed using the desired mpi compiler.
![gcc或者icc]()
11.jpg
![gcc或者icc-1]()
22.jpg |
|