To link BLAS and LAPACK sequential versiton, specify -SSL2 to frtpx command.
To use BLAS and LAPACK thread parallel versiton, specify -SSL2BLAMP.
To link ScaLAPACK, specify -SCALAPACK as option to mpifrtpx command. Also, depending on the type of BLAS, LAPACK sequential version, thread parallel version, specify -SSL2 or -SSL2BLAMP option.
When joining with a login node, if -KSVE is enabled, combine libraries that are using SVE.
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 using SVE.
-KSVE option’s default (when omitted) will be -KSVE.
To translate the user program with the native compiler and combine BLAS and LAPACK archive,use frt command.
To translate a user program written in MPI using a native compiler and combine BLAS and LAPACK archive, use mpifrt command.
To link BLAS and LAPACK sequential versiton, specify -SSL2 to fccpx command.
To use BLAS and LAPACK thread parallel versiton, specify -SSL2BLAMP.
To link ScaLAPACK, specify -SCALAPACK as option to mpifccpx command. Also, depending on the type of BLAS, LAPACK sequential version, thread parallel version, specify -SSL2 or -SSL2BLAMP option.
When joining with a login node, if -KSVE is enabled, combine libraries that are using SVE.
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 using SVE.
-KSVE option’s default (when omitted) will be -KSVE.
To translate the user program with the native compiler and combine BLAS and LAPACK archive,use fcc command.
To translate a user program written in MPI using a native compiler and combine BLAS and LAPACK archive, use mpifcc command.
To link BLAS and LAPACK sequential versiton, specify -SSL2 to FCCpx command.
To use BLAS and LAPACK thread parallel versiton, specify -SSL2BLAMP.
To link ScaLAPACK, specify -SCALAPACK as option to mpiFCCpx command. Also, depending on the type of BLAS, LAPACK sequential version, thread parallel version, specify -SSL2 or -SSL2BLAMP option.
When joining with a login node, if -KSVE is enabled, combine libraries that are using SVE.
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 using SVE.
-KSVE option’s default (when omitted) will be -KSVE.
To translate the user program with the native compiler and combine BLAS and LAPACK archive,use fcc command.
To translate a user program written in MPI using a native compiler and combine BLAS and LAPACK archive, use mpifcc command.
BLAS, LAPACK, ScaLAPACK will be static link if combine by the way mentioned in “ How to conpile Fortran “ “How to compile C language “ “ How to compile C++ “ . Separately, a shared library is also provided. The shared library version is different from the static link version in consideration of the case of dynamically loading and using it.
For shared libraries, ILP64 interface libraries which use the 64-bit integer type and 64-bit logical type as parameter of routines as well as LP64 libraries are supported for BLAS and LAPACK. When using the ILP64 interface, specify the ILP64 shared library.
To translate a user program written in Fortran and combine BLAS and LAPACK sequential shared libraries, specify the options mentioned in below list, to frtpx or frt command line.
Type
combine option
LP64, General-purpose version
-lfjlapack
LP64, SVE version
-lfjlapacksve
ILP64, General-purpose version
-lfjlapack_ilp64
ILP64, SVE version
-lfjlapacksve_ilp64
Specify this option after the user program.
Examples of usage are as follows.
Translate program written in Fortran a.f, combine SVE version BLAS and LAPACK libraries.
[_LNlogin]$ frtpx-Kfast,optmsg=2a.f-lfjlapacksve
Translate program written in Fortran a.f, combine the general-purpose BLAS and LAPACK libraries.
[_LNlogin]$ frtpx-Kfast,optmsg=2a.f-lfjlapack
Translate program written in Fortran a.f, combine SVE version BLAS and LAPACK libraries with ILP64 interface. The basic integer type and basic logical type of the source program are -CcdII8,-CcdLL8 option and expand to 8 byte.
In order to translate user programs written in Fortran and combine thread-parallel shared libraries of BLAS and LAPACK, specify the options shown in the following table in addition to -Kopenmp option to frtpx or frt command line.
Type
combine option
LP64, General-purpose version
-lfjlapackex
LP64, SVE version
-lfjlapackexsve
ILP64, General-purpose version
-lfjlapackex_ilp64
ILP6, SVE version
-lfjlapackexsve_ilp64
Specify this option after the user program.
It is possible to specify -Kparallel option instead of -Kopenmp option.
Examples of usage are as follows.
Translate program written in Fortran a.f, combine SVE version BLAS and LAPACK thread parallel version libraries.
Translate program written in Fortran a.f, combine SVE version BLAS and LAPACK thread parallel version libraries with ILP64 interface. The basic integer type and basic logical type of the source program are -CcdII8,-CcdLL8 option and expand to 8 byte.
To translate a user program that uses ScaLAPACK and combine a shared library of ScaLAPACK, specify the options shown in the following table by using mpifrtpx or mpifrt command.
Type
combine option
LP64, General-purpose version
-lfjscalapack
LP64, SVE version
-lfjscalapacksve
ILP64, General-purpose version
-
ILP64, SVE version
-
Specify the option for linking ScaLAPACK after the user program, and before the option for linking BLAS and LAPACK.
When using the thread parallel version of BLAS and LAPACK, also specify the -Kopenmpoption.
Examples of usage are as follows.
Translate program written in Fortran a.f, combine the SVE version of the ScaLAPACK library. BLAS and LAPACK combine sequential versions.
Translate program written in Fortran a.f by native compiler, combine the SVE version of the ScaLAPACK library. BLAS and LAPACK combine thread parallel versions.
To translate a user program written in C or C ++ and combine a shared library of sequential versions of BLAS and LAPACK, specify -SSL2 or -SSL2BLAMP in addition to the below option, to fccpx, FCCpx, fcc or FCC command line.
Type
combine option
LP64, General-purpose version
-lfjlapack
LP64, SVE version
-lfjlapacksve
ILP64, General-purpose version
-lfjlapack_ilp64
ILP64, SVE version
-lfjlapacksve_ilp64
Specify the join option after the user program. It is ok to specify either -SSL2 or -SSL2BLAMP option.
When using the ILP64 interface library, to use a header file that supports ILP64, specify -I/opt/FJSVxtclang/include/lapack_ilp64 for translating option.
Examples of usage are as follows.
Translate program written in C a.c, combine SVE version BLAS and LAPACK libraries.
To translate the user program and combine the shared library of BLAS and LAPACK thread parallel versions, specify -SSL2 and -SSL2BLAMP in addition to -Kopenmpoption and following mentioned option, to fccpx, FCCpx, fcc or FCC command line.
Type
combine option
LP64, General-purpose version
-lfjlapackex
LP64, SVE version
-lfjlapackexsve
ILP64, General-purpose version
-lfjlapackex_ilp64
ILP64, SVE version
-lfjlapackexsve_ilp64
Specify the binding option after the user program. It is ok to specify either -SSL2 or -SSL2BLAMP option.
It is possible to specify -Kparallel option instead of -Kopenmp option.
When using the ILP64 interface library, to use a header file that supports ILP64, specify -I/opt/FJSVxtclang/include/lapack_ilp64 for translating option.
Examples of usage are as follows.
Translate program written in C a.c, combines SVE version BLAS and LAPACK thread parallel version library.
Specify the ScaLAPACK linkage option after the user program, and before the BLAS and LAPACK linkage options. It is ok to specify either -SSL2 or -SSL2BLAMP option.
When using thread parallel version BLAS, LAPACK, specify -Kopenmp option at the same time.
Examples of usage are as follows.
Translate program written in C a.c, combine the SVE version of the ScaLAPACK library. BLAS and LAPACK combine sequential versions.
Translate program written in C a.c by native compiler, combine the SVE version of the ScaLAPACK library. BLAS and LAPACK combine thread parallel versions.
When using the BLAS, LAPACK, or ScaLAPACK library dynamically loaded with the dlopen or dlsym function, specify the file name with the dlopen function and load the library.
The following table lists the shared library file names.
Type
BLAS, LAPACK sequential version
BLAS, LAPACK thread parallel version
BLAS, ScaLAPACK
LP64, General-purpose version
libfjlapack.so
libfjlapackex.so
libfjscalapack.so
LP64, SVE version
libfjlapacksve.so
libfjlapackexsve.so
libfjscalapacksve.so
ILP64, General-purpose version
libfjlapack_ilp64.so
libfjlapackex_ilp64.so
-
ILP64, SVE version
libfjlapacksve_ilp64.so
libfjlapackexsve_ilp64.so
-
When using BLAS, LAPACK, and ScaLAPACK using the dlopen and dlsym functions, there is no need to specify an option to specify the library when combining.
When combining user programs that use BLAS, LAPACK thread parallel version, specify -Kopenmp option when combining.
If combine the user program by using fccpx,FCCpx,mpifccpx or mpiFCCpx command, specify -SSL2 or -SSL2BLAMP option at the same time.
If combine the user program and ScaLAPACK library by using mpifccpx or mpiFCCpx command, specify -SCALAPACK option at the same time.
Examples of usage are as follows.
Translate C program a.c to dynamically load BLAS, LAPACK thread parallel version , combine.
[_LNlogin]$ fccpx-Kfast,optmsg=2a.c-SSL2
Translate C program a.c to dynamically load BLAS, LAPACK thread parallel version , combine.
[_LNlogin]$ fccpx-Kfast,openmp,optmsg=2a.c-SSL2
Translate C program a.c that dynamically loads ScaLAPACK, BLAS, and LAPACK serial versions, combine.
[_LNlogin]$ fccpx-Kfast,optmsg=2a.c-SSL2
Translate C program a.c that dynamically loads ScaLAPACK, BLAS, and LAPACK thread parallel version, combine.