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
11-
126#include < cuda_runtime.h>
137#include < cusolverDn.h>
148
@@ -39,7 +33,7 @@ class Diag_Cusolver_gvd{
3933 double *d_A = nullptr ;
4034 double *d_B = nullptr ;
4135 double *d_work = nullptr ;
42-
36+
4337 cuDoubleComplex *d_A2 = nullptr ;
4438 cuDoubleComplex *d_B2 = nullptr ;
4539 cuDoubleComplex *d_work2 = nullptr ;
@@ -54,7 +48,7 @@ class Diag_Cusolver_gvd{
5448// - init_double : initializing relevant double type data structures and gpu apis' handle and memory
5549// - init_complex : initializing relevant complex type data structures and gpu apis' handle and memory
5650// Input Parameters
57- // N: the dimension of the matrix
51+ // N: the dimension of the matrix
5852 void init_double (int N);
5953 void init_complex (int N);
6054
@@ -70,17 +64,17 @@ public:
7064// - Dngvd_double : dense double type matrix
7165// - Dngvd_complex : dense complex type matrix
7266// 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)
67+ // N: the number of rows of the matrix
68+ // M: the number of cols of the matrix
69+ // A: the hermitian matrix A in A x=lambda B (column major)
70+ // B: the SPD matrix B in A x=lambda B (column major)
7771// Output Parameter
7872// W: generalized eigenvalues
7973// V: generalized eigenvectors (column major)
8074
8175 void Dngvd_double (int N, int M, double *A, double *B, double *W, double *V);
8276 void Dngvd_complex (int N, int M, std::complex <double > *A, std::complex <double > *B, double *W, std::complex <double > *V);
83-
77+
8478 void Dngvd (int N, int M, double *A, double *B, double *W, double *V)
8579 {
8680 return Dngvd_double (N, M, A, B, W, V);
0 commit comments