diff --git a/test_conformance/math_brute_force/binary_double.cpp b/test_conformance/math_brute_force/binary_double.cpp index 034b325a..490c17b6 100644 --- a/test_conformance/math_brute_force/binary_double.cpp +++ b/test_conformance/math_brute_force/binary_double.cpp @@ -133,7 +133,9 @@ struct ThreadInfo double maxErrorValue2; // position of the max error value (param 2). Init // to 0. MTdata d; - cl_command_queue tQueue; // per thread command queue to improve performance + + // Per thread command queue to improve performance + clCommandQueueWrapper tQueue; }; struct TestInfo @@ -795,7 +797,6 @@ exit: clReleaseMemObject(threadInfo.inBuf2); for (auto j = gMinVectorSizeIndex; j < gMaxVectorSizeIndex; j++) clReleaseMemObject(threadInfo.outBuf[j]); - clReleaseCommandQueue(threadInfo.tQueue); } return error; diff --git a/test_conformance/math_brute_force/binary_float.cpp b/test_conformance/math_brute_force/binary_float.cpp index 7abaa0e4..01082bc1 100644 --- a/test_conformance/math_brute_force/binary_float.cpp +++ b/test_conformance/math_brute_force/binary_float.cpp @@ -131,7 +131,9 @@ struct ThreadInfo double maxErrorValue2; // position of the max error value (param 2). Init // to 0. MTdata d; - cl_command_queue tQueue; // per thread command queue to improve performance + + // Per thread command queue to improve performance + clCommandQueueWrapper tQueue; }; struct TestInfo @@ -952,7 +954,6 @@ exit: clReleaseMemObject(threadInfo.inBuf2); for (auto j = gMinVectorSizeIndex; j < gMaxVectorSizeIndex; j++) clReleaseMemObject(threadInfo.outBuf[j]); - clReleaseCommandQueue(threadInfo.tQueue); } return error; diff --git a/test_conformance/math_brute_force/binary_i_double.cpp b/test_conformance/math_brute_force/binary_i_double.cpp index bba93617..def0bd41 100644 --- a/test_conformance/math_brute_force/binary_i_double.cpp +++ b/test_conformance/math_brute_force/binary_i_double.cpp @@ -132,7 +132,9 @@ struct ThreadInfo cl_int maxErrorValue2; // position of the max error value (param 2). Init // to 0. MTdata d; - cl_command_queue tQueue; // per thread command queue to improve performance + + // Per thread command queue to improve performance + clCommandQueueWrapper tQueue; }; struct TestInfo @@ -717,7 +719,6 @@ exit: clReleaseMemObject(threadInfo.inBuf2); for (auto j = gMinVectorSizeIndex; j < gMaxVectorSizeIndex; j++) clReleaseMemObject(threadInfo.outBuf[j]); - clReleaseCommandQueue(threadInfo.tQueue); } return error; diff --git a/test_conformance/math_brute_force/binary_i_float.cpp b/test_conformance/math_brute_force/binary_i_float.cpp index 4821830c..ed207098 100644 --- a/test_conformance/math_brute_force/binary_i_float.cpp +++ b/test_conformance/math_brute_force/binary_i_float.cpp @@ -130,7 +130,9 @@ struct ThreadInfo cl_int maxErrorValue2; // position of the max error value (param 2). Init // to 0. MTdata d; - cl_command_queue tQueue; // per thread command queue to improve performance + + // Per thread command queue to improve performance + clCommandQueueWrapper tQueue; }; struct TestInfo @@ -710,7 +712,6 @@ exit: clReleaseMemObject(threadInfo.inBuf2); for (auto j = gMinVectorSizeIndex; j < gMaxVectorSizeIndex; j++) clReleaseMemObject(threadInfo.outBuf[j]); - clReleaseCommandQueue(threadInfo.tQueue); } return error; diff --git a/test_conformance/math_brute_force/binary_operator_double.cpp b/test_conformance/math_brute_force/binary_operator_double.cpp index 09c560e9..992df276 100644 --- a/test_conformance/math_brute_force/binary_operator_double.cpp +++ b/test_conformance/math_brute_force/binary_operator_double.cpp @@ -132,7 +132,9 @@ struct ThreadInfo double maxErrorValue2; // position of the max error value (param 2). Init // to 0. MTdata d; - cl_command_queue tQueue; // per thread command queue to improve performance + + // Per thread command queue to improve performance + clCommandQueueWrapper tQueue; }; struct TestInfo @@ -762,7 +764,6 @@ exit: clReleaseMemObject(threadInfo.inBuf2); for (auto j = gMinVectorSizeIndex; j < gMaxVectorSizeIndex; j++) clReleaseMemObject(threadInfo.outBuf[j]); - clReleaseCommandQueue(threadInfo.tQueue); } return error; diff --git a/test_conformance/math_brute_force/binary_operator_float.cpp b/test_conformance/math_brute_force/binary_operator_float.cpp index f2e57bc1..a555beaa 100644 --- a/test_conformance/math_brute_force/binary_operator_float.cpp +++ b/test_conformance/math_brute_force/binary_operator_float.cpp @@ -130,7 +130,9 @@ struct ThreadInfo double maxErrorValue2; // position of the max error value (param 2). Init // to 0. MTdata d; - cl_command_queue tQueue; // per thread command queue to improve performance + + // Per thread command queue to improve performance + clCommandQueueWrapper tQueue; }; struct TestInfo @@ -889,7 +891,6 @@ exit: clReleaseMemObject(threadInfo.inBuf2); for (auto j = gMinVectorSizeIndex; j < gMaxVectorSizeIndex; j++) clReleaseMemObject(threadInfo.outBuf[j]); - clReleaseCommandQueue(threadInfo.tQueue); } return error; diff --git a/test_conformance/math_brute_force/macro_binary_double.cpp b/test_conformance/math_brute_force/macro_binary_double.cpp index 88b0f86c..fb28d823 100644 --- a/test_conformance/math_brute_force/macro_binary_double.cpp +++ b/test_conformance/math_brute_force/macro_binary_double.cpp @@ -126,7 +126,9 @@ struct ThreadInfo cl_mem inBuf2; // input buffer for the thread cl_mem outBuf[VECTOR_SIZE_COUNT]; // output buffers for the thread MTdata d; - cl_command_queue tQueue; // per thread command queue to improve performance + + // Per thread command queue to improve performance + clCommandQueueWrapper tQueue; }; struct TestInfo @@ -707,7 +709,6 @@ exit: clReleaseMemObject(threadInfo.inBuf2); for (auto j = gMinVectorSizeIndex; j < gMaxVectorSizeIndex; j++) clReleaseMemObject(threadInfo.outBuf[j]); - clReleaseCommandQueue(threadInfo.tQueue); } return error; diff --git a/test_conformance/math_brute_force/macro_binary_float.cpp b/test_conformance/math_brute_force/macro_binary_float.cpp index 6199dd1a..fd93e2e6 100644 --- a/test_conformance/math_brute_force/macro_binary_float.cpp +++ b/test_conformance/math_brute_force/macro_binary_float.cpp @@ -124,7 +124,9 @@ struct ThreadInfo cl_mem inBuf2; // input buffer for the thread cl_mem outBuf[VECTOR_SIZE_COUNT]; // output buffers for the thread MTdata d; - cl_command_queue tQueue; // per thread command queue to improve performance + + // Per thread command queue to improve performance + clCommandQueueWrapper tQueue; }; struct TestInfo @@ -696,7 +698,6 @@ exit: clReleaseMemObject(threadInfo.inBuf2); for (auto j = gMinVectorSizeIndex; j < gMaxVectorSizeIndex; j++) clReleaseMemObject(threadInfo.outBuf[j]); - clReleaseCommandQueue(threadInfo.tQueue); } return error; diff --git a/test_conformance/math_brute_force/macro_unary_double.cpp b/test_conformance/math_brute_force/macro_unary_double.cpp index b7fb8a96..2365a195 100644 --- a/test_conformance/math_brute_force/macro_unary_double.cpp +++ b/test_conformance/math_brute_force/macro_unary_double.cpp @@ -118,7 +118,9 @@ struct ThreadInfo { cl_mem inBuf; // input buffer for the thread cl_mem outBuf[VECTOR_SIZE_COUNT]; // output buffers for the thread - cl_command_queue tQueue; // per thread command queue to improve performance + + // Per thread command queue to improve performance + clCommandQueueWrapper tQueue; }; struct TestInfo @@ -478,7 +480,6 @@ exit: clReleaseMemObject(threadInfo.inBuf); for (auto j = gMinVectorSizeIndex; j < gMaxVectorSizeIndex; j++) clReleaseMemObject(threadInfo.outBuf[j]); - clReleaseCommandQueue(threadInfo.tQueue); } return error; diff --git a/test_conformance/math_brute_force/macro_unary_float.cpp b/test_conformance/math_brute_force/macro_unary_float.cpp index e4c22369..adc6c3ec 100644 --- a/test_conformance/math_brute_force/macro_unary_float.cpp +++ b/test_conformance/math_brute_force/macro_unary_float.cpp @@ -117,7 +117,9 @@ struct ThreadInfo { cl_mem inBuf; // input buffer for the thread cl_mem outBuf[VECTOR_SIZE_COUNT]; // output buffers for the thread - cl_command_queue tQueue; // per thread command queue to improve performance + + // Per thread command queue to improve performance + clCommandQueueWrapper tQueue; }; struct TestInfo @@ -492,7 +494,6 @@ exit: clReleaseMemObject(threadInfo.inBuf); for (auto j = gMinVectorSizeIndex; j < gMaxVectorSizeIndex; j++) clReleaseMemObject(threadInfo.outBuf[j]); - clReleaseCommandQueue(threadInfo.tQueue); } return error; diff --git a/test_conformance/math_brute_force/unary_double.cpp b/test_conformance/math_brute_force/unary_double.cpp index 76bcfd46..19402283 100644 --- a/test_conformance/math_brute_force/unary_double.cpp +++ b/test_conformance/math_brute_force/unary_double.cpp @@ -120,7 +120,9 @@ struct ThreadInfo cl_mem outBuf[VECTOR_SIZE_COUNT]; // output buffers for the thread float maxError; // max error value. Init to 0. double maxErrorValue; // position of the max error value. Init to 0. - cl_command_queue tQueue; // per thread command queue to improve performance + + // Per thread command queue to improve performance + clCommandQueueWrapper tQueue; }; struct TestInfo @@ -516,7 +518,6 @@ exit: clReleaseMemObject(threadInfo.inBuf); for (auto j = gMinVectorSizeIndex; j < gMaxVectorSizeIndex; j++) clReleaseMemObject(threadInfo.outBuf[j]); - clReleaseCommandQueue(threadInfo.tQueue); } return error; diff --git a/test_conformance/math_brute_force/unary_float.cpp b/test_conformance/math_brute_force/unary_float.cpp index d310054d..5a9a7361 100644 --- a/test_conformance/math_brute_force/unary_float.cpp +++ b/test_conformance/math_brute_force/unary_float.cpp @@ -118,7 +118,9 @@ struct ThreadInfo cl_mem outBuf[VECTOR_SIZE_COUNT]; // output buffers for the thread float maxError; // max error value. Init to 0. double maxErrorValue; // position of the max error value. Init to 0. - cl_command_queue tQueue; // per thread command queue to improve performance + + // Per thread command queue to improve performance + clCommandQueueWrapper tQueue; }; struct TestInfo @@ -693,7 +695,6 @@ exit: clReleaseMemObject(threadInfo.inBuf); for (auto j = gMinVectorSizeIndex; j < gMaxVectorSizeIndex; j++) clReleaseMemObject(threadInfo.outBuf[j]); - clReleaseCommandQueue(threadInfo.tQueue); } return error;