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

Method get_norm

XM/include/Utils/memory.h:1180–1187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178 }
1179
1180 inline double get_norm(const DeviceBlasHandle& cublas_H) {
1181 double norm;
1182 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
1183 CHECK_CUBLAS( cublasDnrm2_v2(
1184 cublas_H.cublas_handle, this->nnz, this->vals, 1, &norm
1185 ) );
1186 return norm;
1187 }
1188
1189 ~DeviceSpMatDoubleCSC() {
1190 CHECK_CUDA( cudaSetDevice(this->gpu_id) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected