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

Function deleteBuffers

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

Source from the content-addressed store, hash-verified

45}
46
47template <typename T> static void
48deleteBuffers(T *blasX, int *blasiAmax=NULL, int *clblasiAmax=NULL)
49{
50 if(blasX != NULL)
51 {
52 delete[] blasX;
53 }
54 if(clblasiAmax != NULL)
55 {
56 delete[] clblasiAmax;
57 }
58 if(blasiAmax != NULL)
59 {
60 delete(blasiAmax);
61 }
62}
63
64template <typename T>
65void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected