| 1254 | } |
| 1255 | |
| 1256 | inline double get_norm(const DeviceBlasHandle& cublas_H) { |
| 1257 | double norm; |
| 1258 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
| 1259 | CHECK_CUBLAS( cublasDnrm2_v2( |
| 1260 | cublas_H.cublas_handle, this->nnz, this->vals, 1, &norm |
| 1261 | ) ); |
| 1262 | return norm; |
| 1263 | } |
| 1264 | |
| 1265 | ~DeviceSpMatDoubleCSR() { |
| 1266 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
nothing calls this directly
no outgoing calls
no test coverage detected