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

Method get_norm

XM/include/Utils/memory.h:1114–1121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112 }
1113
1114 inline double get_norm(const DeviceBlasHandle& cublas_H) {
1115 double norm;
1116 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
1117 CHECK_CUBLAS( cublasDnrm2_v2(
1118 cublas_H.cublas_handle, this->nnz, this->vals, 1, &norm
1119 ) );
1120 return norm;
1121 }
1122
1123 ~DeviceSpVecDouble() {
1124 CHECK_CUDA( cudaSetDevice(this->gpu_id) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected