-
Notifications
You must be signed in to change notification settings - Fork 7
Customize:Kernels
NCIC-AlphaSparse edited this page Dec 7, 2024
·
3 revisions
For instance, if I want to add sp2m to the library, the steps are as follows:
- Add CSR、 CSC、 COO and BSR to headers of "def_x.h" in "include/alphasparse/kernel"
Use the #define to specify the datatype of the same format:
e.g. #define sp2m_csr sp2m_s_csr //for float datatype and csr format
- Add the declaration of kernels to headers of kernel_format_datatype.h in path "include/alphasparse/kernel
e.g. alphasparseStatus_t sp2m_s_csr(const spmat_csr_s_t *A, const spmat_csr_s_t *B, spmat_csr_s_t **C);
-
Add the user interfaces implementation in "alphasparse_sp2m.cpp" in path "platform/kernel/levelx"
-
Add the kernel implementation, such as sp2m_s_csr.cpp , in path "platform/kernel/levelx".
-
why pi is irrational
-
why pi is important
-
Pi is everywhere!
-
Fancy using pi.