Rate This Document
Findability
Accuracy
Completeness
Readability

Migration from Netlib SCALAPACK to KML_SCALAPACK

Replaceability

The Fortran interfaces of SCALAPACK are the same as those of Netlib SCALAPACK.

Table 1 describes the mapping between replaceable SCALAPACK interfaces and Fortran interfaces in Netlib SCALAPACK. Only optimized interfaces are provided.

Table 1 Replacement mapping between KML_SCALAPACK and Netlib SCALAPACK

Netlib Interface

KML Interface

psgetrf

psgetrf

pdgetrf

pdgetrf

pcgetrf

pcgetrf

pzgetrf

pzgetrf

pspotrf

pspotrf

pdpotrf

pdpotrf

pcpotrf

pcpotrf

pzpotrf

pzpotrf

psgeqrf

psgeqrf

pdgeqrf

pdgeqrf

pcgeqrf

pcgeqrf

pzgeqrf

pzgeqrf

psgels

psgels

pdgels

pdgels

pcgels

pcgels

pzgels

pzgels

The preceding interfaces are Fortran interfaces. When using these interfaces in the C language, you need to add an underscore (_) after the interface name. The parameter type is a pointer. For details, see "Kunpeng Math Library Developer Guide" > "Applied Math Libraries" > "KML_SCALAPACK Library Functions" > "Function Syntax" in Kunpeng HPCKit 26.1.RC1 Developer Guide.

Migrating the C-based Library

  1. The Fortran interfaces provided by KML_SCALAPACK are the same as those provided by Netlib SCALAPACK. When the C language is used, you can use #include "kscalapack.h" to obtain the interface declaration.

Other code does not need to be modified.

Migrating the Fortran-based Library

The Fortran interfaces are the same as those of Netlib SCALAPACK. The code does not need to be modified.