| 717 | } |
| 718 | |
| 719 | inline double get_norm(const DeviceBlasHandle& cublas_H) { |
| 720 | double norm; |
| 721 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
| 722 | CHECK_CUBLAS( cublasDnrm2_v2( |
| 723 | cublas_H.cublas_handle, this->nnz, this->vals, 1, &norm |
| 724 | ) ); |
| 725 | return norm; |
| 726 | } |
| 727 | |
| 728 | ~DeviceSpMatCOO() { |
| 729 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
nothing calls this directly
no outgoing calls
no test coverage detected