MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / deleteBuffers

Function deleteBuffers

src/tests/correctness/corr-hpmv.cpp:48–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48template <typename T> static void
49deleteBuffers(T *A, T *X, T *blasY, T *clblasY)
50{
51 if(A != NULL)
52 {
53 delete[] A;
54 }
55 if(X != NULL)
56 {
57 delete[] X;
58 }
59 if(blasY != NULL)
60 {
61 delete[] blasY;
62 }
63 if(clblasY != NULL)
64 {
65 delete[] clblasY; // To hold clblas HPMV call results
66 }
67}
68
69template <typename T>
70void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected