3.1.3. Compiler Environment Settings¶
To use Fortran/C/C++ compiler, it is needed to set the path which corresponds to the using version, to the environment variable PATH,LD_LIBRARY_PATH.
On Supercomputer Fugaku, since the default language environment (standard environment) is set at login, it is not necessary to set environment variables after login.
However it is available to set the environmet that corresponds to each version. We indicate the module file name that corresponds to each version in the below table.
Version level |
Module file name |
---|---|
4.12.0 tcsds-1.2.41 |
lang/tcsds-1.2.41 (default) |
4.11.2 tcsds-1.2.40 |
lang/tcsds-1.2.40 |
4.11.1 tcsds-1.2.39 |
lang/tcsds-1.2.39 |
Default module file can be confirmed by mentioning as module avail of the list displayed by executing the (default)
command.
$ module avail
------------------------------- /work/Fugaku-environment/modulefiles -------------------------------
lang/tcsds-1.2.39 lang/tcsds-1.2.40 lang/tcsds-1.2.41(default)
Environment setting file use example
This is the example of if using version level 4.11.1 tcsds-1.2.39 environment.
[_LNlogin]$ module switch lang/tcsds-1.2.39 [_LNlogin]$ module list Currently Loaded Modulefiles: 1) lang/tcsds-1.2.39Environment is defined by loading environment setting file with module load command.
Attention
If a module file with a different version level has already been loaded, an error will occur when loading. Use the module switch command as shown above or use the module unload command to release the settings before executing.
[_LNlogin]$ module unload lang/tcsds-1.2.41[_LNlogin]$ module load lang/tcsds-1.2.39