Home
last modified time | relevance | path

Searched refs:gQueue (Results 1 – 25 of 25) sorted by relevance

/external/OpenCL-CTS/test_conformance/printf/
Dtest_printf.cpp109 static cl_command_queue gQueue; 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/math_brute_force/
Dmad_float.cpp168 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_mad_Float()
175 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer2, CL_FALSE, 0, in TestFunc_mad_Float()
182 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer3, CL_FALSE, 0, in TestFunc_mad_Float()
195 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_mad_Float()
236 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_mad_Float()
245 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_mad_Float()
259 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_mad_Float()
Dmad_double.cpp169 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_mad_Double()
176 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer2, CL_FALSE, 0, in TestFunc_mad_Double()
183 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer3, CL_FALSE, 0, in TestFunc_mad_Double()
196 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_mad_Double()
237 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_mad_Double()
246 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_mad_Double()
260 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_mad_Double()
Dunary_two_results_i_float.cpp180 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_FloatI_Float()
193 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_FloatI_Float()
202 if ((error = clEnqueueWriteBuffer(gQueue, gOutBuffer2[j], CL_FALSE, in TestFunc_FloatI_Float()
237 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_FloatI_Float()
246 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_FloatI_Float()
259 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_FloatI_Float()
266 clEnqueueReadBuffer(gQueue, gOutBuffer2[j], CL_TRUE, 0, in TestFunc_FloatI_Float()
Dunary_two_results_i_double.cpp177 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_DoubleI_Double()
190 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_DoubleI_Double()
199 if ((error = clEnqueueWriteBuffer(gQueue, gOutBuffer2[j], CL_FALSE, in TestFunc_DoubleI_Double()
234 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_DoubleI_Double()
243 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_DoubleI_Double()
256 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_DoubleI_Double()
263 clEnqueueReadBuffer(gQueue, gOutBuffer2[j], CL_TRUE, 0, in TestFunc_DoubleI_Double()
Dunary_two_results_double.cpp169 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_Double2_Double()
182 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_Double2_Double()
191 if ((error = clEnqueueWriteBuffer(gQueue, gOutBuffer2[j], CL_FALSE, in TestFunc_Double2_Double()
226 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_Double2_Double()
235 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_Double2_Double()
252 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_Double2_Double()
259 clEnqueueReadBuffer(gQueue, gOutBuffer2[j], CL_TRUE, 0, in TestFunc_Double2_Double()
Dunary_u_double.cpp158 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_Double_ULong()
171 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_Double_ULong()
199 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_Double_ULong()
208 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_Double_ULong()
220 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_Double_ULong()
Di_unary_float.cpp161 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_Int_Float()
174 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_Int_Float()
203 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_Int_Float()
212 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_Int_Float()
224 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_Int_Float()
Dunary_u_float.cpp162 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_Float_UInt()
175 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_Float_UInt()
203 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_Float_UInt()
212 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_Float_UInt()
224 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_Float_UInt()
Di_unary_double.cpp164 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_Int_Double()
177 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_Int_Double()
206 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_Int_Double()
215 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_Int_Double()
227 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_Int_Double()
Dunary_two_results_float.cpp183 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_Float2_Float()
196 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_Float2_Float()
205 if ((error = clEnqueueWriteBuffer(gQueue, gOutBuffer2[j], CL_FALSE, in TestFunc_Float2_Float()
240 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_Float2_Float()
249 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_Float2_Float()
306 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_Float2_Float()
313 clEnqueueReadBuffer(gQueue, gOutBuffer2[j], CL_TRUE, 0, in TestFunc_Float2_Float()
Dmain.cpp59 cl_command_queue gQueue = NULL; variable
341 if (gQueue) in main()
343 int error_code = clFinish(gQueue); in main()
665 gQueue = clCreateCommandQueue(gContext, gDevice, 0, &error); in InitCL()
666 if (NULL == gQueue || error) in InitCL()
873 clReleaseCommandQueue(gQueue); in ReleaseCL()
935 if ((error = clEnqueueNDRangeKernel(gQueue, kernel, 1, NULL, &dim, NULL, 0, in InitILogbConstants()
948 if ((error = clEnqueueReadBuffer(gQueue, gOutBuffer[gMinVectorSizeIndex], in InitILogbConstants()
999 if ((error = clEnqueueNDRangeKernel(gQueue, kernel, 1, NULL, &dim, NULL, 0, in IsTininessDetectedBeforeRounding()
1012 if ((error = clEnqueueReadBuffer(gQueue, gOutBuffer[gMinVectorSizeIndex], in IsTininessDetectedBeforeRounding()
[all …]
Dbinary_two_results_i_float.cpp210 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_FloatI_Float_Float()
217 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer2, CL_FALSE, 0, in TestFunc_FloatI_Float_Float()
230 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_FloatI_Float_Float()
239 if ((error = clEnqueueWriteBuffer(gQueue, gOutBuffer2[j], CL_FALSE, in TestFunc_FloatI_Float_Float()
281 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_FloatI_Float_Float()
290 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_FloatI_Float_Float()
320 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_FloatI_Float_Float()
327 clEnqueueReadBuffer(gQueue, gOutBuffer2[j], CL_TRUE, 0, in TestFunc_FloatI_Float_Float()
Dbinary_two_results_i_double.cpp209 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_DoubleI_Double_Double()
216 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer2, CL_FALSE, 0, in TestFunc_DoubleI_Double_Double()
229 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_DoubleI_Double_Double()
238 if ((error = clEnqueueWriteBuffer(gQueue, gOutBuffer2[j], CL_FALSE, in TestFunc_DoubleI_Double_Double()
280 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_DoubleI_Double_Double()
289 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_DoubleI_Double_Double()
319 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_DoubleI_Double_Double()
326 clEnqueueReadBuffer(gQueue, gOutBuffer2[j], CL_TRUE, 0, in TestFunc_DoubleI_Double_Double()
Dternary_double.cpp273 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_Double_Double_Double_Double()
280 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer2, CL_FALSE, 0, in TestFunc_Double_Double_Double_Double()
287 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer3, CL_FALSE, 0, in TestFunc_Double_Double_Double_Double()
300 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_Double_Double_Double_Double()
341 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_Double_Double_Double_Double()
350 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_Double_Double_Double_Double()
364 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_Double_Double_Double_Double()
Dternary_float.cpp293 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, in TestFunc_Float_Float_Float_Float()
300 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer2, CL_FALSE, 0, in TestFunc_Float_Float_Float_Float()
307 if ((error = clEnqueueWriteBuffer(gQueue, gInBuffer3, CL_FALSE, 0, in TestFunc_Float_Float_Float_Float()
320 clEnqueueWriteBuffer(gQueue, gOutBuffer[j], CL_FALSE, 0, in TestFunc_Float_Float_Float_Float()
361 clEnqueueNDRangeKernel(gQueue, kernels[j], 1, NULL, in TestFunc_Float_Float_Float_Float()
370 if ((error = clFlush(gQueue))) vlog("clFlush failed\n"); in TestFunc_Float_Float_Float_Float()
399 clEnqueueReadBuffer(gQueue, gOutBuffer[j], CL_TRUE, 0, in TestFunc_Float_Float_Float_Float()
Dutility.h45 extern cl_command_queue gQueue;
/external/OpenCL-CTS/test_conformance/half/
DTest_roundTrip.cpp178 …if( (error = clEnqueueWriteBuffer(gQueue, gInBuffer_half, CL_TRUE, 0, count * sizeof( cl_half ), g… in test_roundTrip()
191 …if( (error = clEnqueueWriteBuffer(gQueue, gOutBuffer_half, CL_TRUE, 0, count * sizeof(cl_half), gO… in test_roundTrip()
208 …if( (error = clEnqueueReadBuffer(gQueue, gOutBuffer_half, CL_TRUE, 0, count * sizeof(cl_half), gOu… in test_roundTrip()
243 …if( (error = clEnqueueWriteBuffer(gQueue, gOutBuffer_half, CL_TRUE, 0, count * sizeof(cl_half), gO… in test_roundTrip()
258 …if( (error = clEnqueueReadBuffer(gQueue, gOutBuffer_half, CL_TRUE, 0, count * sizeof(cl_half), gOu… in test_roundTrip()
319 if( (error = clFinish(gQueue)) ) in test_roundTrip()
346 if( (error = clFinish(gQueue)) ) in test_roundTrip()
DTest_vStoreHalf.cpp736 …error = clEnqueueWriteBuffer(gQueue, gInBuffer_single, CL_FALSE, 0, count * sizeof(float ), gIn_si… in Test_vStoreHalf_private()
746 …error = clEnqueueWriteBuffer(gQueue, gInBuffer_double, CL_FALSE, 0, count * sizeof(double ), gIn_d… in Test_vStoreHalf_private()
767 error = clEnqueueWriteBuffer(gQueue, gOutBuffer_half, CL_FALSE, in Test_vStoreHalf_private()
784 error = clEnqueueReadBuffer(gQueue, gOutBuffer_half, CL_TRUE, 0, in Test_vStoreHalf_private()
803 gQueue, gOutBuffer_half, CL_FALSE, 0, in Test_vStoreHalf_private()
820 gQueue, gOutBuffer_half, CL_TRUE, 0, in Test_vStoreHalf_private()
852 …if( (error = clEnqueueWriteBuffer(gQueue, gInBuffer_single, CL_TRUE, 0, count * sizeof( float ), g… in Test_vStoreHalf_private()
866 …if( (error = clEnqueueWriteBuffer(gQueue, gInBuffer_double, CL_TRUE, 0, count * sizeof( double ), … in Test_vStoreHalf_private()
890 if( (error = clFinish(gQueue)) ) in Test_vStoreHalf_private()
917 if( (error = clFinish(gQueue)) ) in Test_vStoreHalf_private()
[all …]
Dcl_utils.cpp56 cl_command_queue gQueue = NULL; variable
122 gQueue = clCreateCommandQueue(gContext, device, 0, &error); in InitCL()
123 if( NULL == gQueue ) in InitCL()
263 clReleaseCommandQueue(gQueue); in ReleaseCL()
326 …if( (error = clEnqueueNDRangeKernel( gQueue, kernel, 1, NULL, &localCount, &wg_size, 0, NULL, NULL… in RunKernel()
DTest_vLoadHalf.cpp459 …if( (error = clEnqueueWriteBuffer(gQueue, gInBuffer_half, CL_TRUE, 0, count * sizeof( cl_half ), g… in Test_vLoadHalf_private()
485 …if( (error = clEnqueueWriteBuffer(gQueue, gOutBuffer_single, CL_TRUE, 0, count * sizeof( float ), … in Test_vLoadHalf_private()
505 …if( (error = clEnqueueReadBuffer(gQueue, gOutBuffer_single, CL_TRUE, 0, count * sizeof( float ), g… in Test_vLoadHalf_private()
550 if( (error = clFinish(gQueue)) ) in Test_vLoadHalf_private()
Dmain.cpp115 if(gQueue) in main()
117 int flush_error = clFinish(gQueue); in main()
Dcl_utils.h65 extern cl_command_queue gQueue;
/external/OpenCL-CTS/test_conformance/contractions/
Dcontractions.cpp70 cl_command_queue gQueue = NULL; variable
337 if( gQueue ) in main()
339 int flush_error = clFinish( gQueue ); in main()
492 gQueue = clCreateCommandQueue( gContext, device, 0, &error ); in InitCL()
493 if( NULL == gQueue || error ) in InitCL()
657 … if( (error = clEnqueueWriteBuffer(gQueue, bufA, CL_FALSE, 0, BUFFER_SIZE, buf1, 0, NULL, NULL) )) in InitCL()
666 … if( (error = clEnqueueWriteBuffer(gQueue, bufB, CL_FALSE, 0, BUFFER_SIZE, buf2, 0, NULL, NULL) )) in InitCL()
717 … if( (error = clEnqueueWriteBuffer(gQueue, bufC, CL_FALSE, 0, BUFFER_SIZE, buf3, 0, NULL, NULL) )) in InitCL()
722 … if( (error = clEnqueueWriteBuffer(gQueue, bufD, CL_FALSE, 0, BUFFER_SIZE, buf4, 0, NULL, NULL) )) in InitCL()
844 …if( (error = clEnqueueWriteBuffer(gQueue, bufC_double, CL_FALSE, 0, BUFFER_SIZE, buf3_double, 0, N… in InitCL()
[all …]
/external/OpenCL-CTS/test_conformance/conversions/
Dtest_conversions.cpp77 cl_command_queue gQueue = NULL; variable
320 if (gQueue) in main()
322 error = clFinish(gQueue); in main()
331 clReleaseCommandQueue(gQueue); in main()
657 gQueue = clCreateCommandQueue(gContext, device, 0, &error); in InitCL()
658 if( NULL == gQueue || error ) in InitCL()
742 if( (error = clEnqueueNDRangeKernel(gQueue, kernel, 1, NULL, &blockCount, NULL, 0, NULL, NULL))) in RunKernel()
1140 …if( (error = clEnqueueWriteBuffer(gQueue, gInBuffer, CL_FALSE, 0, count * gTypeSizes[inType], gIn,… in DoTest()
1173 if( (error = clFlush( gQueue ) ) ) in DoTest()
1285 if( (error = clFinish(gQueue) ) ) in DoTest()
[all …]