Configuring the Compilation Environment
Prerequisites
The installation packages have been uploaded to the server using an SFTP tool.
Configuration Process
Configuring the Environment
- Use PuTTY to log in to the server as the root user.
- Edit the environment variable file.
vi ~/.bashrc
- Press i to enter the insert mode and run the following commands to load the BiSheng Compiler and Hyper MPI environment variables.
export PATH=/path/to/BISHENG/bin:/path/to/HMPI/bin:$PATH export LD_LIBRARY_PATH=/path/to/BISHENG/lib:/path/to/HMPI/lib:$LD_LIBRARY_PATH
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Make the environment variables take effect.
source ~/.bashrc
When installing the BiSheng Compiler, you need to specify the compilation parameters.
CC=clang CXX=clang++ FC=flang
Parent topic: UDUNITS 2.2.28 Porting Guide (openEuler 21.03)