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

Method get_norm

XM/include/Utils/memory.h:940–947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938 return;
939 }
940 inline double get_norm(const DeviceBlasHandle& cublas_H) {
941 double norm;
942 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
943 CHECK_CUBLAS( cublasDnrm2_v2(
944 cublas_H.cublas_handle, this->size, this->vals, 1, &norm
945 ) );
946 return norm;
947 }
948
949 ~DeviceDnVecDouble() {
950 CHECK_CUDA( cudaSetDevice(this->gpu_id) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected