| 14 | cusolverDnParams_t param; |
| 15 | |
| 16 | SingleEigParam(const int gpu_id = 0): gpu_id(gpu_id) { |
| 17 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
| 18 | this->param = NULL; |
| 19 | CHECK_CUSOLVER( cusolverDnCreateParams(&this->param) ); |
| 20 | // we need eigen vector |
| 21 | this->jobz = CUSOLVER_EIG_MODE_VECTOR; |
| 22 | // upper and lower is arbitrary |
| 23 | this->uplo = CUBLAS_FILL_MODE_LOWER; |
| 24 | } |
| 25 | |
| 26 | ~SingleEigParam() { |
| 27 | if (this->param != NULL) { |
nothing calls this directly
no outgoing calls
no test coverage detected