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

Method get_norm

XM/include/Utils/memory.h:548–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected