| 624 | } |
| 625 | |
| 626 | static cl_uint |
| 627 | getQueueMaxImages(cl_command_queue queue) |
| 628 | { |
| 629 | cl_int err; |
| 630 | cl_device_id device; |
| 631 | cl_command_queue_properties props; |
| 632 | cl_bool imageSupport; |
| 633 | |
| 634 | imageSupport = CL_FALSE; |
| 635 | err = getQueueDevice(queue, &device); |
| 636 | if (err != CL_SUCCESS) { |
| 637 | return 0; |
| 638 | } |
| 639 | err = clGetDeviceInfo(device, CL_DEVICE_IMAGE_SUPPORT, sizeof(imageSupport), |
| 640 | &imageSupport, NULL); |
| 641 | if (!imageSupport) { |
| 642 | return 0; |
| 643 | } |
| 644 | |
| 645 | props = 0; |
| 646 | err = getQueueProperties(queue, &props); |
| 647 | if (props & CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE) { |
| 648 | return 0; |
| 649 | } |
| 650 | |
| 651 | return 2; |
| 652 | } |
| 653 | |
| 654 | static bool |
| 655 | isTransBUsed(BlasFunctionID funcID) |
no test coverage detected