33#include < cuda.h>
44#include < complex>
55
6- #if CUDA_VERSION < 12090
7- #include " nvToolsExt.h"
8- #else
9- #include " nvtx3/nvToolsExt.h"
10- #endif
6+ // #include "source_base/module_device/cuda_compat.h"
117
128#include < cuda_runtime.h>
139#include < cusolverDn.h>
@@ -39,7 +35,7 @@ class Diag_Cusolver_gvd{
3935 double *d_A = nullptr ;
4036 double *d_B = nullptr ;
4137 double *d_work = nullptr ;
42-
38+
4339 cuDoubleComplex *d_A2 = nullptr ;
4440 cuDoubleComplex *d_B2 = nullptr ;
4541 cuDoubleComplex *d_work2 = nullptr ;
@@ -54,7 +50,7 @@ class Diag_Cusolver_gvd{
5450// - init_double : initializing relevant double type data structures and gpu apis' handle and memory
5551// - init_complex : initializing relevant complex type data structures and gpu apis' handle and memory
5652// Input Parameters
57- // N: the dimension of the matrix
53+ // N: the dimension of the matrix
5854 void init_double (int N);
5955 void init_complex (int N);
6056
@@ -70,17 +66,17 @@ public:
7066// - Dngvd_double : dense double type matrix
7167// - Dngvd_complex : dense complex type matrix
7268// Input Parameters
73- // N: the number of rows of the matrix
74- // M: the number of cols of the matrix
75- // A: the hermitian matrix A in A x=lambda B (column major)
76- // B: the SPD matrix B in A x=lambda B (column major)
69+ // N: the number of rows of the matrix
70+ // M: the number of cols of the matrix
71+ // A: the hermitian matrix A in A x=lambda B (column major)
72+ // B: the SPD matrix B in A x=lambda B (column major)
7773// Output Parameter
7874// W: generalized eigenvalues
7975// V: generalized eigenvectors (column major)
8076
8177 void Dngvd_double (int N, int M, double *A, double *B, double *W, double *V);
8278 void Dngvd_complex (int N, int M, std::complex <double > *A, std::complex <double > *B, double *W, std::complex <double > *V);
83-
79+
8480 void Dngvd (int N, int M, double *A, double *B, double *W, double *V)
8581 {
8682 return Dngvd_double (N, M, A, B, W, V);
0 commit comments