Home
last modified time | relevance | path

Searched refs:gContext (Results 1 – 20 of 20) sorted by relevance

/external/OpenCL-CTS/test_conformance/printf/
Dtest_printf.cpp108 static cl_context gContext; variable
583 return doTest(gQueue, gContext, TYPE_INT, 0, deviceID); in test_int_0()
587 return doTest(gQueue, gContext, TYPE_INT, 1, deviceID); in test_int_1()
591 return doTest(gQueue, gContext, TYPE_INT, 2, deviceID); in test_int_2()
595 return doTest(gQueue, gContext, TYPE_INT, 3, deviceID); in test_int_3()
599 return doTest(gQueue, gContext, TYPE_INT, 4, deviceID); in test_int_4()
603 return doTest(gQueue, gContext, TYPE_INT, 5, deviceID); in test_int_5()
607 return doTest(gQueue, gContext, TYPE_INT, 6, deviceID); in test_int_6()
611 return doTest(gQueue, gContext, TYPE_INT, 7, deviceID); in test_int_7()
615 return doTest(gQueue, gContext, TYPE_INT, 8, deviceID); in test_int_8()
[all …]
/external/OpenCL-CTS/test_conformance/half/
Dcl_utils.cpp55 cl_context gContext = NULL; variable
115 gContext = clCreateContext( NULL, 1, &device, notify_callback, NULL, &error ); in InitCL()
116 if( NULL == gContext ) in InitCL()
122 gQueue = clCreateCommandQueue(gContext, device, 0, &error); in InitCL()
155 …gInBuffer_half = clCreateBuffer(gContext, CL_MEM_READ_ONLY, getBufferSize(device) / 2, NULL, &erro… in InitCL()
162 gInBuffer_single = clCreateBuffer(gContext, CL_MEM_READ_ONLY, BUFFER_SIZE, NULL, &error ); in InitCL()
169 gInBuffer_double = clCreateBuffer(gContext, CL_MEM_READ_ONLY, BUFFER_SIZE*2, NULL, &error ); in InitCL()
176 gOutBuffer_half = clCreateBuffer(gContext, CL_MEM_WRITE_ONLY, BUFFER_SIZE/2, NULL, &error ); in InitCL()
183 …gOutBuffer_single = clCreateBuffer(gContext, CL_MEM_WRITE_ONLY, getBufferSize(device), NULL, &erro… in InitCL()
191 …gOutBuffer_double = clCreateBuffer(gContext, CL_MEM_WRITE_ONLY, (size_t)(2*getBufferSize(device)),… in InitCL()
[all …]
Dcl_utils.h64 extern cl_context gContext;
/external/icu/icu4c/source/test/cintltst/
Dhpmufn.c86 const void *gContext; variable
145 u_setMemoryFunctions(&gContext, NULL, myMemRealloc, myMemFree, &status); in TestHeapFunctions()
148 u_setMemoryFunctions(&gContext, myMemAlloc, NULL, myMemFree, &status); in TestHeapFunctions()
151 u_setMemoryFunctions(&gContext, myMemAlloc, myMemRealloc, NULL, &status); in TestHeapFunctions()
158 u_setMemoryFunctions(&gContext, myMemAlloc, myMemRealloc, myMemFree, &status); in TestHeapFunctions()
/external/OpenCL-CTS/test_conformance/math_brute_force/
Dmain.cpp58 cl_context gContext = NULL; variable
657 gContext = clCreateContext(NULL, 1, &gDevice, bruteforce_notify_callback, in InitCL()
659 if (NULL == gContext || error) in InitCL()
665 gQueue = clCreateCommandQueue(gContext, gDevice, 0, &error); in InitCL()
711 clCreateBuffer(gContext, device_flags, BUFFER_SIZE, gIn, &error); in InitCL()
719 clCreateBuffer(gContext, device_flags, BUFFER_SIZE, gIn2, &error); in InitCL()
727 clCreateBuffer(gContext, device_flags, BUFFER_SIZE, gIn3, &error); in InitCL()
744 gOutBuffer[i] = clCreateBuffer(gContext, device_flags, BUFFER_SIZE, in InitCL()
751 gOutBuffer2[i] = clCreateBuffer(gContext, device_flags, BUFFER_SIZE, in InitCL()
874 clReleaseContext(gContext); in ReleaseCL()
[all …]
Dutility.h44 extern cl_context gContext;
Dmacro_unary_double.cpp234 clCreateCommandQueue(gContext, gDevice, 0, &error); in TestMacro_Int_Double()
Dunary_double.cpp245 clCreateCommandQueue(gContext, gDevice, 0, &error); in TestFunc_Double_Double()
Dmacro_unary_float.cpp234 clCreateCommandQueue(gContext, gDevice, 0, &error); in TestMacro_Int_Float()
Dbinary_i_float.cpp381 clCreateCommandQueue(gContext, gDevice, 0, &error); in TestFunc_Float_Float_Int()
Dunary_float.cpp245 clCreateCommandQueue(gContext, gDevice, 0, &error); in TestFunc_Float_Float()
Dbinary_i_double.cpp388 clCreateCommandQueue(gContext, gDevice, 0, &error); in TestFunc_Double_Double_Int()
Dmacro_binary_float.cpp357 clCreateCommandQueue(gContext, gDevice, 0, &error); in TestMacro_Int_Float_Float()
Dmacro_binary_double.cpp366 clCreateCommandQueue(gContext, gDevice, 0, &error); in TestMacro_Int_Double_Double()
Dbinary_operator_double.cpp381 clCreateCommandQueue(gContext, gDevice, 0, &error); in TestFunc_Double_Double_Double_Operator()
Dbinary_double.cpp387 clCreateCommandQueue(gContext, gDevice, 0, &error); in TestFunc_Double_Double_Double()
Dbinary_operator_float.cpp373 clCreateCommandQueue(gContext, gDevice, 0, &error); in TestFunc_Float_Float_Float_Operator()
Dbinary_float.cpp378 clCreateCommandQueue(gContext, gDevice, 0, &error); in TestFunc_Float_Float_Float()
/external/OpenCL-CTS/test_conformance/contractions/
Dcontractions.cpp69 cl_context gContext = NULL; variable
485 gContext = clCreateContext( NULL, 1, &device, notify_callback, NULL, &error ); in InitCL()
486 if( NULL == gContext || error ) in InitCL()
492 gQueue = clCreateCommandQueue( gContext, device, 0, &error ); in InitCL()
500 bufA = clCreateBuffer( gContext, CL_MEM_READ_WRITE, BUFFER_SIZE, NULL, NULL ); in InitCL()
501 bufB = clCreateBuffer( gContext, CL_MEM_READ_WRITE, BUFFER_SIZE, NULL, NULL ); in InitCL()
502 bufC = clCreateBuffer( gContext, CL_MEM_READ_WRITE, BUFFER_SIZE, NULL, NULL ); in InitCL()
503 bufD = clCreateBuffer( gContext, CL_MEM_READ_WRITE, BUFFER_SIZE, NULL, NULL ); in InitCL()
504 bufE = clCreateBuffer( gContext, CL_MEM_READ_WRITE, BUFFER_SIZE, NULL, NULL ); in InitCL()
518 bufC_double = clCreateBuffer( gContext, CL_MEM_READ_WRITE, BUFFER_SIZE, NULL, NULL ); in InitCL()
[all …]
/external/OpenCL-CTS/test_conformance/conversions/
Dtest_conversions.cpp76 cl_context gContext = NULL; variable
332 clReleaseContext(gContext); in main()
650 gContext = clCreateContext( NULL, 1, &device, notify_callback, NULL, &error ); in InitCL()
651 if( NULL == gContext || error ) in InitCL()
657 gQueue = clCreateCommandQueue(gContext, device, 0, &error); in InitCL()
677 …gInBuffer = clCreateBuffer(gContext, CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR, BUFFER_SIZE, NULL, … in InitCL()
687 …gOutBuffers[i] = clCreateBuffer( gContext, CL_MEM_READ_WRITE | CL_MEM_ALLOC_HOST_PTR, BUFFER_SIZE… in InitCL()
1085 writeInputBufferInfo.calcReferenceValues = clCreateUserEvent( gContext, &error); in DoTest()
1105 writeInputBufferInfo.doneBarrier = clCreateUserEvent( gContext, &error); in DoTest()
1671 …error = create_single_kernel_helper(gContext, &program, outKernel, (cl_uint)stringCount, strings, … in MakeProgram()