5.2. SSL II library¶
Linear calculation
Eigenvalue eigenvector
Nonlinear calculation
Extreme value problem
Interpolation, approximation
Conversion
Numerical calculus
Differential equation
Special functions
Pseudo random number
5.2.1. How to Fortran compile¶
To use SSL II from a Fortran program, specify -SSL2
or -SSL2BLAMP
option.
To link SSL II/MPI library, specify -SSL2MPI
option to mpifrtpx command and also specify -SSL2
or -SSL2BLAMP
.
Compile example is as following:
MPI / Auto parallel / SSL II (Mainly multi node job)
[_LNlogin]$ mpifrtpx -Kfast,parallel,SVE sample.f90 -SSL2MPI -SSL2
MPI / OpenMP / SSL II (Mainly multi node job)
[_LNlogin]$ mpifrtpx -Kfast,parallel,openmp,SVE sample.f90 -SSL2MPI -SSL2
Sequential / SSL II (Single node job)
[_LNlogin]$ frtpx -Kfast,SVE sample.f90 -SSL2
Auto parallel / SSL II (Single node job)
[_LNlogin]$ frtpx -Kfast,parallel,SVE sample.f90 -SSL2
OpenMP / SSL II (Single node job)
[_LNlogin]$ frtpx -Kfast,openmp,SVE sample.f90 -SSL2
See also
The subroutine name and interface of the SSL II subroutine are different between the thread parallel version and the serial version.
When performing separate compilation, specify these options when linking.
When joining with a login node, if
–KSVE
is enabled, combine libraries that are usingSVE
.When joining with a login node, if
–KNOSVE
is enabled, combine general purpose libraries.If combine with computing node, specifying
-KSVE
or-KNOSVE
combine library usingSVE
.-KSVE
option’s default (when omitted) will be-KSVE
.To translate the user program with the native compiler and combine SSL II, use frt command.
To translate a user program written in MPI using a native compiler and combine SSL II / MPI, use mpifrt command.
5.2.2. Sample program (SSL2 / Fortran)¶
This indicates compile example using sample program.
- Prepare a source program.Prepare a sample program as
/home/system/sample/SSL2/sample_SSL2.f
. Compile a sample program.
[_LNlogin]$ frtpx -V -Kfast,optmsg=2,SVE -Nlst=t -o sample_SSL2 sample_SSL2.f -SSL2
- Prepare a job script.Prepare a job script as
/home/system/sample/SSL2/sample_SSL2.sh
. Submit a job with pjsub command.
[_LNlogin]$ pjsub sample_SSL2.sh [INFO] PJM 0000 pjsub Job 140 submitted.
5.2.3. Program return value when used from C language¶
Function name |
Return value of program |
---|---|
main |
C return value |
MAIN__ |
Fortran return value
However, if the Fortran return value is 0, the C return value is returned.
|