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

Method get_norm

XM/include/Utils/memory.h:992–999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

990 return;
991 }
992 inline float get_norm(const DeviceBlasHandle& cublas_H) {
993 float norm;
994 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
995 CHECK_CUBLAS( cublasSnrm2_v2(
996 cublas_H.cublas_handle, this->size, this->vals, 1, &norm
997 ) );
998 return norm;
999 }
1000
1001 ~DeviceDnVecFloat() {
1002 CHECK_CUDA( cudaSetDevice(this->gpu_id) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected