Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring the Compilation Environment

Prerequisites

The installation packages have been uploaded to the server using an SFTP tool.

Configuration Process

Table 1 Configuration process

No.

Configuration Item

Remarks

1

Installing the BiSheng Compiler

See Installing and Using BiSheng Compiler.

2

Installing Hyper MPI

See Hyper MPI 1.0.2 Operation Guide.

Configuring the Environment

  1. Use PuTTY to log in to the server as the root user.
  2. Edit the environment variable file.
    vi ~/.bashrc
  3. 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
  4. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. 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