MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / buffer_memory

Method buffer_memory

src/tests/buffer_memory.h:57–64  ·  view source on GitHub ↗

/ requested_number_of_floats should already take into account any strides, batch size, data layout (real, complex, hermitian, interleaved, planar)

Source from the content-addressed store, hash-verified

55 // requested_number_of_floats should already take into account any strides,
56 // batch size, data layout (real, complex, hermitian, interleaved, planar)
57 buffer_memory( size_t requested_number_of_floats )
58 : cookie_size( 4 )
59 , requested_floats( requested_number_of_floats )
60 , memory_size_including_cookies( requested_number_of_floats + 2 * cookie_size )
61 , memory( memory_size_including_cookies )
62 {
63 clear();
64 }
65
66 /*****************************************************/
67 ~buffer_memory() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected