| 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 | { |
no outgoing calls
no test coverage detected