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

Method get_norm

XM/include/Utils/memory.h:1256–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1254 }
1255
1256 inline double get_norm(const DeviceBlasHandle& cublas_H) {
1257 double norm;
1258 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
1259 CHECK_CUBLAS( cublasDnrm2_v2(
1260 cublas_H.cublas_handle, this->nnz, this->vals, 1, &norm
1261 ) );
1262 return norm;
1263 }
1264
1265 ~DeviceSpMatDoubleCSR() {
1266 CHECK_CUDA( cudaSetDevice(this->gpu_id) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected