MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / Get_CuSparse_Handle

Function Get_CuSparse_Handle

ngscuda/cuda_linalg.cpp:53–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 cusparseHandle_t Get_CuSparse_Handle ()
54 {
55 static Timer tsparsehandle("CUDA create cusparse handle");
56 RegionTimer reg(tsparsehandle);
57
58 static cusparseHandle_t handle;
59 static bool first_call = true;
60
61 if (first_call)
62 {
63 first_call = false;
64 cusparseCreate (&handle);
65 std::cerr << "[cusparse] handle created" << std::endl;
66 }
67 return handle;
68 }
69
70 void InitCuLinalg()
71 {

Callers 4

InitCuLinalgFunction · 0.85
DevSparseMatrixMethod · 0.85
MultAddMethod · 0.85
MultTransAddMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected