| 990 | return; |
| 991 | } |
| 992 | inline float get_norm(const DeviceBlasHandle& cublas_H) { |
| 993 | float norm; |
| 994 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
| 995 | CHECK_CUBLAS( cublasSnrm2_v2( |
| 996 | cublas_H.cublas_handle, this->size, this->vals, 1, &norm |
| 997 | ) ); |
| 998 | return norm; |
| 999 | } |
| 1000 | |
| 1001 | ~DeviceDnVecFloat() { |
| 1002 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
nothing calls this directly
no outgoing calls
no test coverage detected