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

Function deleteBuffers

src/tests/correctness/corr-hemm.cpp:49–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49template <typename T> static void
50deleteBuffers(T *A, T *B, T *C, T *backC)
51{
52 if(A != NULL)
53 {
54 delete[] A;
55 }
56 if(B != NULL)
57 {
58 delete[] B;
59 }
60 if(C != NULL)
61 {
62 delete[] C;
63 }
64 if(backC != NULL)
65 {
66 delete[] backC;// To hold the original C
67}
68}
69
70template <typename T>
71void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected