1*6467f958SSadaf Ebrahimi // 2*6467f958SSadaf Ebrahimi // Copyright (c) 2017 The Khronos Group Inc. 3*6467f958SSadaf Ebrahimi // 4*6467f958SSadaf Ebrahimi // Licensed under the Apache License, Version 2.0 (the "License"); 5*6467f958SSadaf Ebrahimi // you may not use this file except in compliance with the License. 6*6467f958SSadaf Ebrahimi // You may obtain a copy of the License at 7*6467f958SSadaf Ebrahimi // 8*6467f958SSadaf Ebrahimi // http://www.apache.org/licenses/LICENSE-2.0 9*6467f958SSadaf Ebrahimi // 10*6467f958SSadaf Ebrahimi // Unless required by applicable law or agreed to in writing, software 11*6467f958SSadaf Ebrahimi // distributed under the License is distributed on an "AS IS" BASIS, 12*6467f958SSadaf Ebrahimi // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*6467f958SSadaf Ebrahimi // See the License for the specific language governing permissions and 14*6467f958SSadaf Ebrahimi // limitations under the License. 15*6467f958SSadaf Ebrahimi // 16*6467f958SSadaf Ebrahimi #ifndef __PROCS_H__ 17*6467f958SSadaf Ebrahimi #define __PROCS_H__ 18*6467f958SSadaf Ebrahimi 19*6467f958SSadaf Ebrahimi #include "harness/errorHelpers.h" 20*6467f958SSadaf Ebrahimi #include "harness/kernelHelpers.h" 21*6467f958SSadaf Ebrahimi #include "harness/imageHelpers.h" 22*6467f958SSadaf Ebrahimi #include "harness/mt19937.h" 23*6467f958SSadaf Ebrahimi 24*6467f958SSadaf Ebrahimi 25*6467f958SSadaf Ebrahimi extern int check_times(cl_ulong queueStart, cl_ulong submitStart, cl_ulong commandStart, cl_ulong commandEnd, cl_device_id device); 26*6467f958SSadaf Ebrahimi 27*6467f958SSadaf Ebrahimi extern int test_read_array_int( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 28*6467f958SSadaf Ebrahimi extern int test_read_array_uint( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 29*6467f958SSadaf Ebrahimi extern int test_read_array_long( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 30*6467f958SSadaf Ebrahimi extern int test_read_array_ulong( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 31*6467f958SSadaf Ebrahimi extern int test_read_array_short( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 32*6467f958SSadaf Ebrahimi extern int test_read_array_ushort( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 33*6467f958SSadaf Ebrahimi extern int test_read_array_float( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 34*6467f958SSadaf Ebrahimi extern int test_read_array_half( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 35*6467f958SSadaf Ebrahimi extern int test_read_array_char( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 36*6467f958SSadaf Ebrahimi extern int test_read_array_uchar( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 37*6467f958SSadaf Ebrahimi extern int test_read_array_struct( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 38*6467f958SSadaf Ebrahimi extern int test_write_array_int( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 39*6467f958SSadaf Ebrahimi extern int test_write_array_uint( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 40*6467f958SSadaf Ebrahimi extern int test_write_array_long( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 41*6467f958SSadaf Ebrahimi extern int test_write_array_ulong( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 42*6467f958SSadaf Ebrahimi extern int test_write_array_short( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 43*6467f958SSadaf Ebrahimi extern int test_write_array_ushort( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 44*6467f958SSadaf Ebrahimi extern int test_write_array_float( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 45*6467f958SSadaf Ebrahimi extern int test_write_array_half( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 46*6467f958SSadaf Ebrahimi extern int test_write_array_char( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 47*6467f958SSadaf Ebrahimi extern int test_write_array_uchar( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 48*6467f958SSadaf Ebrahimi extern int test_write_array_struct( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 49*6467f958SSadaf Ebrahimi extern int test_read_image_float( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 50*6467f958SSadaf Ebrahimi extern int test_read_image_char( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 51*6467f958SSadaf Ebrahimi extern int test_read_image_uchar( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 52*6467f958SSadaf Ebrahimi extern int test_write_image_float( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 53*6467f958SSadaf Ebrahimi extern int test_write_image_char( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 54*6467f958SSadaf Ebrahimi extern int test_write_image_uchar( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 55*6467f958SSadaf Ebrahimi extern int test_copy_array( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 56*6467f958SSadaf Ebrahimi extern int test_copy_partial_array( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 57*6467f958SSadaf Ebrahimi extern int test_copy_image( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 58*6467f958SSadaf Ebrahimi extern int test_copy_array_to_image( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 59*6467f958SSadaf Ebrahimi extern int test_execute( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 60*6467f958SSadaf Ebrahimi extern int test_parallel_kernels( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements ); 61*6467f958SSadaf Ebrahimi 62*6467f958SSadaf Ebrahimi 63*6467f958SSadaf Ebrahimi #endif // #ifndef __PROCS_H__ 64*6467f958SSadaf Ebrahimi 65*6467f958SSadaf Ebrahimi 66