Run all tests for a given type
| 873 | |
| 874 | // Run all tests for a given type |
| 875 | int run_test(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements, ExplicitType type, int num) { |
| 876 | int errors = 0; |
| 877 | errors += test_integer_ops_threaded(deviceID, context, queue, 1024*1024*2, 1, kBothVectors, num, type, -1); |
| 878 | errors += test_integer_ops_threaded(deviceID, context, queue, 1024*1024*2, 2, kBothVectors, num, type, -1); |
| 879 | errors += test_integer_ops_threaded(deviceID, context, queue, 1024*1024*2, 3, kBothVectors, num, type, -1); |
| 880 | errors += test_integer_ops_threaded(deviceID, context, queue, 1024*1024*2, 4, kBothVectors, num, type, -1); |
| 881 | errors += test_integer_ops_threaded(deviceID, context, queue, 1024*1024*2, 8, kBothVectors, num, type, -1); |
| 882 | errors += test_integer_ops_threaded(deviceID, context, queue, 1024*1024*2, 16, kBothVectors, num, type, -1); |
| 883 | return errors; |
| 884 | } |
| 885 | |
| 886 | |
| 887 | // ----------------- |
no test coverage detected