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

Function deleteBuffers

src/tests/correctness/corr-gbmv.cpp:47–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected