| 546 | } |
| 547 | |
| 548 | inline double get_norm(const DeviceBlasHandle& cublas_H) { |
| 549 | double norm; |
| 550 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
| 551 | CHECK_CUBLAS( cublasDnrm2_v2( |
| 552 | cublas_H.cublas_handle, this->nnz, this->vals, 1, &norm |
| 553 | ) ); |
| 554 | return norm; |
| 555 | } |
| 556 | |
| 557 | ~DeviceSpMatCSC() { |
| 558 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
nothing calls this directly
no outgoing calls
no test coverage detected