5.5. High-speed quadruple precision basic arithmetic library¶
5.5.1. How to combine Fortran versions¶
fast_dd can be used in conjunction with user programs written in Fortran or C ++. Use the Fortran / C ++ compiler made by Fujitsu for translation and combination.
Compile example is as following:
Conbine SVE fast_dd archives.
[_LNlogin]$ frtpx -Kfast,optmsg=2,SVE a.f90 -SSL2
Combine generic fast_dd archives.
[_LNlogin]$ frtpx -Kfast,optmsg=2,NOSVE a.f90 -SSL2
Translate user program using thread parallel routine, conbine fast_dd archive.
[_LNlogin]$ frtpx -Kfast,openmp,optmsg=2,SVE b.f90 -SSL2
Translate user program by native compiler, conbine SVE version fast_dd archives.
[_CNlogin]$ frt -Kfast,optmsg=2,SVE a.f90 -SSL2
See also
To translate a user program with a cross compiler and combine fast_dd, specify
-SSL2to frtpx command line.If you are using the BLAS / LAPACK thread parallel version in your user program, specify
-SSL2BLAMP.To use fast_dd thread parallelized routines, add the -Kopenmp or -Kparallel option.
When joining with a login node, if
-KSVEis enabled, combine libraries that are usingSVE.When joining with a login node, if
-KNOSVEis enabled, combine general purpose libraries.If combine with computing node, specifying
-KSVEor-KNOSVEcombine library usingSVE.-KSVEoption’s default (when omitted) will be-KSVE.To translate a user program written in MPI using a native compiler and combine fast_dd, use mpifrtpx, mpifrt command.
5.5.2. How to conbine C ++ version¶
Compile example is as following:
Translate user program
a.cpp,conbine SVE fast_dd archives.
[_LNlogin]$ FCCpx -Kfast,openmp,optmsg=2,SVE a.cpp -SSL2
Translate user program
a.cpp, combine generic fast_dd archives.
[_LNlogin]$ FCCpx -Kfast,openmp,optmsg=2,NOSVE a.cpp -SSL2
Translate user program by native compiler , conbine SVE fast_dd archives.
[_CNlogin]$ FCC -Kfast,openmp,optmsg=2,SVE a.cpp -SSL2
See also
To translate a user program with a cross compiler and combine fast_dd, specify
-SSL2to FCCpx command line.If you are using the BLAS / LAPACK thread parallel version in your user program, specify
-SSL2BLAMP.fast_dd is a thread-safe object, specify
-Kopenmp, -Kparallelor-mt.When joining with a login node, if
-KSVEis enabled, combine libraries that are usingSVE.When joining with a login node, if
-KNOSVEis enabled, combine general purpose libraries.If combine with computing node, specifying
-KSVEor-KNOSVEcombine library usingSVE.-KSVEoption’s default (when omitted) will be-KSVE.To translate a user program written in MPI using a native compiler and combine fast_dd, use mpiFCCpx, mpiFCC command.