MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / getQueueMaxImages

Function getQueueMaxImages

src/library/blas/generic/solution_seq_make.c:626–652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626static cl_uint
627getQueueMaxImages(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
654static bool
655isTransBUsed(BlasFunctionID funcID)

Callers 1

findBestPatternFunction · 0.85

Calls 2

getQueueDeviceFunction · 0.85
getQueuePropertiesFunction · 0.85

Tested by

no test coverage detected