5.3. C-SSL II library¶
The C-SSL II library provides interface routines for the C language to a subset of the SSL II rich subroutine group used in the Fortran language, making it available in the C / C ++ language.
Linear calculation
Eigenvalue eigenvector
Nonlinear calculation
Extreme value problem
Interpolation, approximation
Conversion
Numerical calculus
Differential equation
Special functions
Pseudo random number
Auxiliary routine
5.3.1. How to compile C language¶
To use C-SSL II library, specify -SSL2
or -SSL2BLAMP
option.
To link SSL II/MPI library, specify -SSL2MPI
option to mpiFCCpx command, and also specify -SSL2
or -SSL2BLAMP
.
Compile example is as following:
MPI / Auto parallel / SSL II (Mainly multi node job)
[_LNlogin]$ mpifccpx -Kfast,parallel,SVE sample.c -SSL2MPI -SSL2
MPI / OpenMP / SSL II (Mainly multi node job)
[_LNlogin]$ mpifccpx -Kfast,parallel,openmp,SVE sample.c -SSL2MPI -SSL2
Sequential / SSL II (Single node job)
[_LNlogin]$ fccpx -Kfast,SVE sample.c -SSL2
Auto parallel / SSL II (Single node job)
[_LNlogin]$ fccpx -Kfast,parallel,SVE sample.c -SSL2
OpenMP / SSL II (Single node job)
[_LNlogin]$ fccpx -Kfast,openmp,SVE sample.c -SSL2
See also
When conbine with login node, if
-KSVE
is enabled, combine libraries usingSVE
.When conbine with login node, if
-KNOSVE
is enabled, combine general purpose libraries.When conbine with computing node, specifying
-KSVE
or-KNOSVE
combines libraries usingSVE
.-KSVE
option’s default (when omitted) will be-KSVE
.To translate the user program with the native compiler and combine C-SSL II, use FCC command.
To translate a user program written in MPI using a native compiler and combine SSL II/MPI, use mpiFCC command.
5.3.2. Sample program (C-SSL II/C)¶
This indicates a example of compiling to job execution using sample program.
- Prepare a source program.Prepare a sample program as
/home/system/sample/CSSL2/sample(C-SSLII-C).c
. Compile a sample program.
[_LNlogin]$ fccpx -V -Kfast,optmsg=2 -Nlst=t -o sample_C-SSLII-C sample_C-SSLII-C.c -SSL2
- Prepare a job script.Prepare a job script as
/home/system/sample/CSSL2/sample_C-SSLII-C.sh
. Submit a job with pjsub command.
[_LNlogin]$ pjsub sample_C-SSLII-C.sh [INFO] PJM 0000 pjsub Job 138 submitted.
5.3.3. How to compile C++¶
To use C-SSL II library, specify -SSL2
or -SSL2BLAMP
option.
To link SSL II/MPI library, specify -SSL2MPI
option to mpiFCCpx command, and also specify -SSL2
or -SSL2BLAMP
.
Compile example is as following:
MPI / Auto parallel / SSL II (Mainly multi node job)
[_LNlogin]$ mpiFCCpx -Kfast,parallel,SVE sample.cc -SSL2MPI -SSL2
MPI / OpenMP / SSL II (Mainly multi node job)
[_LNlogin]$ mpiFCCpx -Kfast,parallel,openmp,SVE sample.cc -SSL2MPI -SSL2
Sequential / SSL II (Single node job)
[_LNlogin]$ FCCpx -Kfast,SVE sample.cc -SSL2
Auto parallel / SSL II (Single node job)
[_LNlogin]$ FCCpx -Kfast,parallel,SVE sample.cc -SSL2
OpenMP / SSL II (Single node job)
[_LNlogin]$ FCCpx -Kfast,openmp,SVE sample.cc -SSL2
See also
When conbine with login node, if
-KSVE
is enabled, combine libraries usingSVE
.When conbine with login node, if
-KNOSVE
is enabled, combine general purpose libraries.When conbine with computing node, specifying
-KSVE
or-KNOSVE
combines libraries usingSVE
.-KSVE
option’s default (when omitted) will be-KSVE
.To translate the user program with the native compiler and combine C-SSL II, use FCC command.
To translate a user program written in MPI using a native compiler and combine SSL II/MPI, use mpiFCC command.