| 1178 | } |
| 1179 | |
| 1180 | inline double get_norm(const DeviceBlasHandle& cublas_H) { |
| 1181 | double norm; |
| 1182 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
| 1183 | CHECK_CUBLAS( cublasDnrm2_v2( |
| 1184 | cublas_H.cublas_handle, this->nnz, this->vals, 1, &norm |
| 1185 | ) ); |
| 1186 | return norm; |
| 1187 | } |
| 1188 | |
| 1189 | ~DeviceSpMatDoubleCSC() { |
| 1190 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
nothing calls this directly
no outgoing calls
no test coverage detected