MCPcopy Create free account
hub / github.com/ComputationalRobotics/XM-code / get_norm

Method get_norm

XM/include/Utils/memory.h:637–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635 }
636
637 inline double get_norm(const DeviceBlasHandle& cublas_H) {
638 double norm;
639 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
640 CHECK_CUBLAS( cublasDnrm2_v2(
641 cublas_H.cublas_handle, this->nnz, this->vals, 1, &norm
642 ) );
643 return norm;
644 }
645
646 ~DeviceSpMatCSR() {
647 CHECK_CUDA( cudaSetDevice(this->gpu_id) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected