charmc CLA_Matrix.ci charmc -c CLA_Matrix.C. This will make the necessary .decl.h and .def.h files as well as the object file for the library.
In the user's main .ci file, the user must specify
extern module CLA_Matrix;. If not, CHARM++will complain about missing modules.
The declarations of all classes and functions needed for compilation are in CLA_Matrix.h.
For linking the application, a few things are needed. First, the user must link CLA_Matrix.o into their application. Second, the user must pass the -module CkMulticast to charmc. Finally, a BLAS library must be linked to the application. In reality, only the dgemm routine (and as a result, usually xerbla) is needed. Copies of dgemm and xerbla which can be used are included in the package. However, it is recommended that you link an optimized BLAS into your application to get higher performance.
June 29, 2008
Charm Homepage