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

Method get_norm

XM/include/Utils/memory.h:719–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717 }
718
719 inline double get_norm(const DeviceBlasHandle& cublas_H) {
720 double norm;
721 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
722 CHECK_CUBLAS( cublasDnrm2_v2(
723 cublas_H.cublas_handle, this->nnz, this->vals, 1, &norm
724 ) );
725 return norm;
726 }
727
728 ~DeviceSpMatCOO() {
729 CHECK_CUDA( cudaSetDevice(this->gpu_id) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected