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.

  1. Linear calculation

  2. Eigenvalue eigenvector

  3. Nonlinear calculation

  4. Extreme value problem

  5. Interpolation, approximation

  6. Conversion

  7. Numerical calculus

  8. Differential equation

  9. Special functions

  10. Pseudo random number

  11. 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:

  1. MPI / Auto parallel / SSL II (Mainly multi node job)

[_LNlogin]$ mpifccpx  -Kfast,parallel,SVE sample.c -SSL2MPI -SSL2
  1. MPI / OpenMP / SSL II (Mainly multi node job)

[_LNlogin]$ mpifccpx -Kfast,parallel,openmp,SVE sample.c -SSL2MPI -SSL2
  1. Sequential / SSL II (Single node job)

[_LNlogin]$ fccpx -Kfast,SVE sample.c -SSL2
  1. Auto parallel / SSL II (Single node job)

[_LNlogin]$ fccpx -Kfast,parallel,SVE sample.c -SSL2
  1. 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 using SVE.

  • When conbine with login node, if -KNOSVE is enabled, combine general purpose libraries.

  • When conbine with computing node, specifying -KSVE or -KNOSVE combines libraries using SVE.

  • -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.

  1. Prepare a source program.
    Prepare a sample program as /home/system/sample/CSSL2/sample(C-SSLII-C).c.
  2. Compile a sample program.

[_LNlogin]$ fccpx -V -Kfast,optmsg=2 -Nlst=t -o sample_C-SSLII-C sample_C-SSLII-C.c -SSL2
  1. Prepare a job script.
    Prepare a job script as /home/system/sample/CSSL2/sample_C-SSLII-C.sh.
  2. 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:

  1. MPI / Auto parallel / SSL II (Mainly multi node job)

[_LNlogin]$ mpiFCCpx -Kfast,parallel,SVE sample.cc -SSL2MPI -SSL2
  1. MPI / OpenMP / SSL II (Mainly multi node job)

[_LNlogin]$ mpiFCCpx -Kfast,parallel,openmp,SVE sample.cc -SSL2MPI -SSL2
  1. Sequential / SSL II (Single node job)

[_LNlogin]$ FCCpx -Kfast,SVE sample.cc -SSL2
  1. Auto parallel / SSL II (Single node job)

[_LNlogin]$ FCCpx -Kfast,parallel,SVE sample.cc -SSL2
  1. 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 using SVE.

  • When conbine with login node, if -KNOSVE is enabled, combine general purpose libraries.

  • When conbine with computing node, specifying -KSVE or -KNOSVE combines libraries using SVE.

  • -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.