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

Function cl_layout_to_buffer_layout

src/tests/accuracy_test_random.cpp:40–54  ·  view source on GitHub ↗

TODO this is pasted from cl_transform.h it should be put in one place for everybody to use /

Source from the content-addressed store, hash-verified

38 // it should be put in one place for everybody to use
39 /*****************************************************/
40 layout::buffer_layout_t cl_layout_to_buffer_layout( clfftLayout cl_layout )
41 {
42 if( cl_layout == CLFFT_REAL )
43 return layout::real;
44 else if( cl_layout == CLFFT_HERMITIAN_PLANAR )
45 return layout::hermitian_planar;
46 else if( cl_layout == CLFFT_COMPLEX_PLANAR )
47 return layout::complex_planar;
48 else if( cl_layout == CLFFT_HERMITIAN_INTERLEAVED )
49 return layout::hermitian_interleaved;
50 else if( cl_layout == CLFFT_COMPLEX_INTERLEAVED )
51 return layout::complex_interleaved;
52 else
53 throw std::runtime_error( "invalid cl_layout" );
54 }
55
56 const size_t one_gb = 1024 * 1024 * 1024;
57

Callers 2

TEST_PFunction · 0.70
clfftMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected