/external/OpenCL-CTS/test_conformance/device_execution/ |
D | device_queue.cpp | 28 cl_int err_ret; in check_device_queue() local 35 err_ret = clRetainCommandQueue(queue); in check_device_queue() 36 test_error(err_ret, "clRetainCommandQueue() failed"); in check_device_queue() 38 …err_ret = clGetCommandQueueInfo(queue, CL_QUEUE_CONTEXT, sizeof(q_context), &q_context, &size_ret); in check_device_queue() 39 test_error(err_ret, "clGetCommandQueueInfo(CL_QUEUE_CONTEXT) failed"); in check_device_queue() 46 err_ret = clGetCommandQueueInfo(queue, CL_QUEUE_DEVICE, sizeof(q_device), &q_device, &size_ret); in check_device_queue() 47 test_error(err_ret, "clGetCommandQueueInfo(CL_QUEUE_DEVICE) failed"); in check_device_queue() 54 …err_ret = clGetCommandQueueInfo(queue, CL_QUEUE_PROPERTIES, sizeof(q_properties), &q_properties, &… in check_device_queue() 55 test_error(err_ret, "clGetCommandQueueInfo(CL_QUEUE_PROPERTIES) failed"); in check_device_queue() 62 err_ret = clGetCommandQueueInfo(queue, CL_QUEUE_SIZE, sizeof(q_size), &q_size, &size_ret); in check_device_queue() [all …]
|
D | host_queue_order.cpp | 94 cl_int k, err_ret, res = 0; in test_host_queue_order() local 101 …err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, sizeof(maxQueueSize), &maxQu… in test_host_queue_order() 102 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE) failed"); in test_host_queue_order() 104 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_ON_DEVICE_QUEUES, sizeof(max_queues), &max_queues,… in test_host_queue_order() 105 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_ON_DEVICE_QUEUES) failed"); in test_host_queue_order() 108 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_WORK_GROUP_SIZE, sizeof(max_local_size), &max_loca… in test_host_queue_order() 109 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_WORK_GROUP_SIZE) failed"); in test_host_queue_order() 118 dev_queue = clCreateCommandQueueWithProperties(context, device, queue_prop_def, &err_ret); in test_host_queue_order() 119 …test_error(err_ret, "clCreateCommandQueueWithProperties(CL_QUEUE_DEVICE|CL_QUEUE_DEFAULT) failed"); in test_host_queue_order() 136 err_ret = create_single_kernel_helper( in test_host_queue_order() [all …]
|
D | enqueue_profiling.cpp | 49 cl_int err_ret, res = 0; in test_enqueue_profiling() local 54 err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, in test_enqueue_profiling() 56 test_error(err_ret, in test_enqueue_profiling() 67 context, device, dev_queue_prop_def, &err_ret); in test_enqueue_profiling() 68 test_error(err_ret, in test_enqueue_profiling() 77 context, device, host_queue_prop_def, &err_ret); in test_enqueue_profiling() 78 test_error(err_ret, in test_enqueue_profiling() 92 err_ret = create_single_kernel_helper(context, &program, &kernel, 1, in test_enqueue_profiling() 95 if (check_error(err_ret, "Create single kernel failed")) return -1; in test_enqueue_profiling() 98 sizeof(result), &result, &err_ret); in test_enqueue_profiling() [all …]
|
D | utils.cpp | 35 cl_int err_ret, status; in run_n_kernel_args() local 43 err_ret = create_single_kernel_helper(context, &program, &kernel, num_lines, in run_n_kernel_args() 45 if(check_error(err_ret, "Create single kernel failed")) return -1; in run_n_kernel_args() 47 …em = clCreateBuffer(context, CL_MEM_READ_WRITE | CL_MEM_USE_HOST_PTR, res_size, results, &err_ret); in run_n_kernel_args() 48 test_error(err_ret, "clCreateBuffer() failed"); in run_n_kernel_args() 50 err_ret = clSetKernelArg(kernel, 0, sizeof(cl_mem), &mem); in run_n_kernel_args() 51 …ck_error(err_ret, "clSetKernelArg(%d, %d, %p) for kernel: '%s' failed: %d", 0, (int)sizeof(cl_mem)… in run_n_kernel_args() 55 err_ret = clSetKernelArg(kernel, i+1, args[i].size, args[i].ptr); in run_n_kernel_args() 56 …r(err_ret, "clSetKernelArg(%d, %d, %p) for kernel: '%s' failed: %d", (int)(i+1), (int)args[i].size… in run_n_kernel_args() 59 …err_ret = clEnqueueNDRangeKernel(queue, kernel, 1, NULL, &global, (local ? &local : NULL), 0, NULL… in run_n_kernel_args() [all …]
|
D | host_multi_queue.cpp | 135 cl_int err_ret, res = 0; in test_host_multi_queue() local 142 …err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, sizeof(maxQueueSize), &maxQu… in test_host_multi_queue() 143 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE) failed"); in test_host_multi_queue() 145 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_ON_DEVICE_QUEUES, sizeof(max_queues), &max_queues,… in test_host_multi_queue() 146 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_ON_DEVICE_QUEUES) failed"); in test_host_multi_queue() 149 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_WORK_GROUP_SIZE, sizeof(max_local_size), &max_loca… in test_host_multi_queue() 150 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_WORK_GROUP_SIZE) failed"); in test_host_multi_queue() 159 dev_queue = clCreateCommandQueueWithProperties(context, device, queue_prop_def, &err_ret); in test_host_multi_queue() 160 …test_error(err_ret, "clCreateCommandQueueWithProperties(CL_QUEUE_DEVICE|CL_QUEUE_DEFAULT) failed"); in test_host_multi_queue() 172 queues[i] = clCreateCommandQueueWithProperties(context, device, NULL, &err_ret); in test_host_multi_queue() [all …]
|
D | device_info.cpp | 32 cl_int err_ret; in test_device_info() local 39 err_ret = clGetDeviceInfo(device, CL_DEVICE_PROFILE, sizeof(profile), profile, &ret_len); in test_device_info() 40 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_PROFILE) failed"); in test_device_info() 49 …err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_HOST_PROPERTIES, sizeof(properties), &propert… in test_device_info() 50 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_QUEUE_ON_HOST_PROPERTIES) failed"); in test_device_info() 57 …err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES, sizeof(properties), &prope… in test_device_info() 58 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES) failed"); in test_device_info() 70 …err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE, sizeof(size), &size, &… in test_device_info() 71 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE) failed"); in test_device_info() 78 …err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, sizeof(size), &size, &ret_le… in test_device_info() [all …]
|
D | enqueue_multi_queue.cpp | 101 cl_int k, err_ret, res = 0; in test_enqueue_multi_queue() local 108 …err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, sizeof(maxQueueSize), &maxQu… in test_enqueue_multi_queue() 109 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE) failed"); in test_enqueue_multi_queue() 111 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_ON_DEVICE_QUEUES, sizeof(max_queues), &max_queues,… in test_enqueue_multi_queue() 112 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_ON_DEVICE_QUEUES) failed"); in test_enqueue_multi_queue() 115 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_WORK_GROUP_SIZE, sizeof(max_local_size), &max_loca… in test_enqueue_multi_queue() 116 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_WORK_GROUP_SIZE) failed"); in test_enqueue_multi_queue() 125 dev_queue = clCreateCommandQueueWithProperties(context, device, queue_prop_def, &err_ret); in test_enqueue_multi_queue() 126 …test_error(err_ret, "clCreateCommandQueueWithProperties(CL_QUEUE_DEVICE|CL_QUEUE_DEFAULT) failed"); in test_enqueue_multi_queue() 143 queues[i] = clCreateCommandQueueWithProperties(context, device, queue_prop, &err_ret); in test_enqueue_multi_queue() [all …]
|
D | enqueue_ndrange.cpp | 615 cl_int err_ret, res = 0; in test_enqueue_ndrange() local 625 …err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, sizeof(maxQueueSize), &maxQu… in test_enqueue_ndrange() 626 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE) failed"); in test_enqueue_ndrange() 628 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_ON_DEVICE_QUEUES, sizeof(max_queues), &max_queues,… in test_enqueue_ndrange() 629 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_ON_DEVICE_QUEUES) failed"); in test_enqueue_ndrange() 632 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_WORK_GROUP_SIZE, sizeof(max_local_size), &max_loca… in test_enqueue_ndrange() 633 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_WORK_GROUP_SIZE) failed"); in test_enqueue_ndrange() 642 dev_queue = clCreateCommandQueueWithProperties(context, device, queue_prop_def, &err_ret); in test_enqueue_ndrange() 643 …test_error(err_ret, "clCreateCommandQueueWithProperties(CL_QUEUE_DEVICE|CL_QUEUE_DEFAULT) failed"); in test_enqueue_ndrange() 681 …AD_ONLY|CL_MEM_COPY_HOST_PTR, glob_size_arr.size() * sizeof(cl_uint), &glob_size_arr[0], &err_ret); in test_enqueue_ndrange() [all …]
|
D | nested_blocks.cpp | 309 cl_int err_ret, res = 0; in test_enqueue_nested_blocks() local 324 …err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, sizeof(maxQueueSize), &maxQu… in test_enqueue_nested_blocks() 325 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE) failed"); in test_enqueue_nested_blocks() 327 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_ON_DEVICE_QUEUES, sizeof(max_queues), &max_queues,… in test_enqueue_nested_blocks() 328 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_ON_DEVICE_QUEUES) failed"); in test_enqueue_nested_blocks() 337 dev_queue = clCreateCommandQueueWithProperties(context, device, queue_prop_def, &err_ret); in test_enqueue_nested_blocks() 338 …test_error(err_ret, "clCreateCommandQueueWithProperties(CL_QUEUE_DEVICE|CL_QUEUE_DEFAULT) failed"); in test_enqueue_nested_blocks() 354 …err_ret = run_n_kernel_args(context, queue, sources_nested_blocks[k].src.lines, sources_nested_blo… in test_enqueue_nested_blocks() 355 …if(check_error(err_ret, "'%s' kernel execution failed", sources_nested_blocks[k].src.kernel_name))… in test_enqueue_nested_blocks() 360 …if(check_error(err_ret, "'%s' kernel execution failed", sources_nested_blocks[k].src.kernel_name))… in test_enqueue_nested_blocks()
|
D | enqueue_block.cpp | 624 cl_int n, err_ret, res = 0; in test_enqueue_block() local 631 …err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, sizeof(maxQueueSize), &maxQu… in test_enqueue_block() 632 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE) failed"); in test_enqueue_block() 634 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_ON_DEVICE_QUEUES, sizeof(max_queues), &max_queues,… in test_enqueue_block() 635 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_ON_DEVICE_QUEUES) failed"); in test_enqueue_block() 638 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_WORK_GROUP_SIZE, sizeof(max_local_size), &max_loca… in test_enqueue_block() 639 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_WORK_GROUP_SIZE) failed"); in test_enqueue_block() 648 dev_queue = clCreateCommandQueueWithProperties(context, device, queue_prop_def, &err_ret); in test_enqueue_block() 649 …test_error(err_ret, "clCreateCommandQueueWithProperties(CL_QUEUE_DEVICE|CL_QUEUE_DEFAULT) failed"); in test_enqueue_block() 666 …err_ret = run_n_kernel_args(context, queue, sources_enqueue_block[i].lines, sources_enqueue_block[… in test_enqueue_block() [all …]
|
D | enqueue_flags.cpp | 677 cl_int err_ret, res = 0; in test_enqueue_flags() local 685 …err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, sizeof(maxQueueSize), &maxQu… in test_enqueue_flags() 686 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE) failed"); in test_enqueue_flags() 688 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_WORK_GROUP_SIZE, sizeof(max_local_size), &max_loca… in test_enqueue_flags() 689 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_WORK_GROUP_SIZE) failed"); in test_enqueue_flags() 698 dev_queue = clCreateCommandQueueWithProperties(context, device, queue_prop_def, &err_ret); in test_enqueue_flags() 699 …test_error(err_ret, "clCreateCommandQueueWithProperties(CL_QUEUE_DEVICE|CL_QUEUE_DEFAULT) failed"); in test_enqueue_flags() 717 …CL_MEM_READ_WRITE|CL_MEM_COPY_HOST_PTR, global_size * BITS_DEPTH * sizeof(cl_int), buff, &err_ret); in test_enqueue_flags() 718 test_error(err_ret, "clCreateBuffer() failed"); in test_enqueue_flags() 725 …err_ret = run_n_kernel_args(context, queue, sources_enqueue_block_flags[i].lines, sources_enqueue_… in test_enqueue_flags() [all …]
|
D | enqueue_wg_size.cpp | 1626 cl_int err_ret, res = 0; in test_enqueue_wg_size() local 1644 …err_ret = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, sizeof(maxQueueSize), &maxQu… in test_enqueue_wg_size() 1645 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE) failed"); in test_enqueue_wg_size() 1647 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_ON_DEVICE_QUEUES, sizeof(max_queues), &max_queues,… in test_enqueue_wg_size() 1648 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_ON_DEVICE_QUEUES) failed"); in test_enqueue_wg_size() 1651 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_WORK_GROUP_SIZE, sizeof(max_local_size), &max_loca… in test_enqueue_wg_size() 1652 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_WORK_GROUP_SIZE) failed"); in test_enqueue_wg_size() 1661 dev_queue = clCreateCommandQueueWithProperties(context, device, queue_prop_def, &err_ret); in test_enqueue_wg_size() 1662 …test_error(err_ret, "clCreateCommandQueueWithProperties(CL_QUEUE_DEVICE|CL_QUEUE_DEFAULT) failed"); in test_enqueue_wg_size() 1690 …mem = clCreateBuffer(context, CL_MEM_READ_ONLY|CL_MEM_COPY_HOST_PTR, sizeof(vrnd), vrnd, &err_ret); in test_enqueue_wg_size() [all …]
|
D | execute_block.cpp | 1017 cl_int n, err_ret, res = 0; in test_execute_block() local 1022 …err_ret = clGetDeviceInfo(device, CL_DEVICE_MAX_WORK_GROUP_SIZE, sizeof(max_local_size), &max_loca… in test_execute_block() 1023 test_error(err_ret, "clGetDeviceInfo(CL_DEVICE_MAX_WORK_GROUP_SIZE) failed"); in test_execute_block() 1035 …err_ret = run_n_kernel_args(context, queue, sources_execute_block[i].lines, sources_execute_block[… in test_execute_block() 1036 …if(check_error(err_ret, "'%s' kernel execution failed", sources_execute_block[i].kernel_name)) { +… in test_execute_block()
|
/external/python/cpython3/Parser/ |
D | parsetok.c | 16 static int initerr(perrdetail *err_ret, PyObject * filename); 65 PyParser_ParseString(const char *s, grammar *g, int start, perrdetail *err_ret) in PyParser_ParseString() argument 67 return PyParser_ParseStringFlagsFilename(s, NULL, g, start, err_ret, 0); in PyParser_ParseString() 72 perrdetail *err_ret, int flags) in PyParser_ParseStringFlags() argument 75 g, start, err_ret, flags); in PyParser_ParseStringFlags() 81 perrdetail *err_ret, int flags) in PyParser_ParseStringFlagsFilename() argument 85 err_ret, &iflags); in PyParser_ParseStringFlagsFilename() 91 perrdetail *err_ret, int *flags) in PyParser_ParseStringObject() argument 96 if (initerr(err_ret, filename) < 0) in PyParser_ParseStringObject() 99 if (PySys_Audit("compile", "yO", s, err_ret->filename) < 0) { in PyParser_ParseStringObject() [all …]
|
/external/python/cpython2/Parser/ |
D | parsetok.c | 18 static void initerr(perrdetail *err_ret, const char* filename); 22 PyParser_ParseString(const char *s, grammar *g, int start, perrdetail *err_ret) in PyParser_ParseString() argument 24 return PyParser_ParseStringFlagsFilename(s, NULL, g, start, err_ret, 0); in PyParser_ParseString() 29 perrdetail *err_ret, int flags) in PyParser_ParseStringFlags() argument 32 g, start, err_ret, flags); in PyParser_ParseStringFlags() 38 perrdetail *err_ret, int flags) in PyParser_ParseStringFlagsFilename() argument 42 err_ret, &iflags); in PyParser_ParseStringFlagsFilename() 48 perrdetail *err_ret, int *flags) in PyParser_ParseStringFlagsFilenameEx() argument 52 initerr(err_ret, filename); in PyParser_ParseStringFlagsFilenameEx() 55 err_ret->error = PyErr_Occurred() ? E_DECODE : E_NOMEM; in PyParser_ParseStringFlagsFilenameEx() [all …]
|
/external/python/cpython3/Include/ |
D | parsetok.h | 56 perrdetail *err_ret, 66 perrdetail *err_ret, 76 perrdetail *err_ret, 84 perrdetail *err_ret, 91 perrdetail *err_ret, 98 perrdetail *err_ret,
|
/external/ltp/testcases/kernel/ipc/semaphore/ |
D | sem02.c | 72 int err_ret; /* This is used to determine PASS/FAIL status */ variable 98 err_ret = 1; /* Set initial error value to 1 */ in main() 111 if (err_ret == 1) in main() 135 err_ret = 0; /* If the message above is displayed, the test is a PASS */ in waiter()
|
/external/linux-kselftest/tools/testing/selftests/ftrace/ |
D | ftracetest | 27 err_ret=1 34 exit $err_ret 140 err_ret=$err_skip 148 err_ret=$err_skip
|
/external/python/cpython3/Python/ |
D | context.c | 24 #define ENSURE_Context(o, err_ret) \ argument 28 return err_ret; \ 31 #define ENSURE_ContextVar(o, err_ret) \ argument 35 return err_ret; \ 38 #define ENSURE_ContextToken(o, err_ret) \ argument 42 return err_ret; \
|
/external/adhd/cras/src/libcras/ |
D | cras_client.c | 1506 goto err_ret; in stream_connected() 1512 goto err_ret; in stream_connected() 1518 goto err_ret; in stream_connected() 1530 goto err_ret; in stream_connected() 1541 err_ret: in stream_connected()
|