Searched refs:max_sub_devices (Results 1 – 2 of 2) sorted by relevance
104 cl_uint max_sub_devices = 0; in test_buffer_migrate() local122 …etDeviceInfo(deviceID, CL_DEVICE_MAX_COMPUTE_UNITS, sizeof(max_sub_devices), &max_sub_devices, NUL… in test_buffer_migrate()126 if (max_sub_devices < 1) { in test_buffer_migrate()130 devices = (cl_device_id *)malloc(max_sub_devices * sizeof(cl_device_id)); in test_buffer_migrate()131 queues = (cl_command_queue *)malloc(max_sub_devices * sizeof(cl_command_queue)); in test_buffer_migrate()132 flagsA = (cl_mem_migration_flags *)malloc(max_sub_devices * sizeof(cl_mem_migration_flags)); in test_buffer_migrate()133 flagsB = (cl_mem_migration_flags *)malloc(max_sub_devices * sizeof(cl_mem_migration_flags)); in test_buffer_migrate()134 flagsC = (cl_mem_migration_flags *)malloc(max_sub_devices * sizeof(cl_mem_migration_flags)); in test_buffer_migrate()135 bufferA = (cl_mem *)malloc(max_sub_devices * sizeof(cl_mem)); in test_buffer_migrate()136 bufferB = (cl_mem *)malloc(max_sub_devices * sizeof(cl_mem)); in test_buffer_migrate()[all …]
121 cl_uint max_sub_devices = 0; in test_image_migrate() local149 …etDeviceInfo(deviceID, CL_DEVICE_MAX_COMPUTE_UNITS, sizeof(max_sub_devices), &max_sub_devices, NUL… in test_image_migrate()153 if (max_sub_devices < 1) { in test_image_migrate()158 devices = (cl_device_id *)malloc(max_sub_devices * sizeof(cl_device_id)); in test_image_migrate()159 queues = (cl_command_queue *)malloc(max_sub_devices * sizeof(cl_command_queue)); in test_image_migrate()160 flagsA = (cl_mem_migration_flags *)malloc(max_sub_devices * sizeof(cl_mem_migration_flags)); in test_image_migrate()161 flagsB = (cl_mem_migration_flags *)malloc(max_sub_devices * sizeof(cl_mem_migration_flags)); in test_image_migrate()162 flagsC = (cl_mem_migration_flags *)malloc(max_sub_devices * sizeof(cl_mem_migration_flags)); in test_image_migrate()163 imageA = (cl_mem *)malloc(max_sub_devices * sizeof(cl_mem)); in test_image_migrate()164 imageB = (cl_mem *)malloc(max_sub_devices * sizeof(cl_mem)); in test_image_migrate()[all …]