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

Method SetUp

src/tests/unit_test.cpp:28–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 clfft_UnitTest(){}
27 virtual ~clfft_UnitTest(){}
28 virtual void SetUp()
29 {
30 lengths[ 0 ] = 32;
31 lengths[ 1 ] = 32;
32 lengths[ 2 ] = 32;
33
34 commandQueueFlags = 0;
35
36 size_t memSizeBytes = lengths[ 0 ] * lengths[ 1 ] * lengths[ 2 ] * sizeof( std::complex< float > );
37
38 device_id = initializeCL( g_device_type, g_device_id, g_platform_id, context, printInfo );
39 createOpenCLCommandQueue( context,
40 commandQueueFlags,
41 queue,
42 device_id,
43 memSizeBytes, 1, &cl_mem_input,
44 memSizeBytes, 1, &cl_mem_output
45 );
46
47 outEvent = NULL;
48
49 clfftCreateDefaultPlan( &test_plan, context, CLFFT_1D, lengths );
50 }
51
52 virtual void TearDown()
53 {

Callers

nothing calls this directly

Calls 3

clfftCreateDefaultPlanFunction · 0.85
initializeCLFunction · 0.50
createOpenCLCommandQueueFunction · 0.50

Tested by

no test coverage detected