Fix printing in test_api_min_max (#2102)

before: Filling constant buffer with 553805440 cl_ints (-2079745536
bytes).
after: Filling constant buffer with 553805440 cl_ints (2215221760
bytes).
This commit is contained in:
Jaroslaw Warchulski
2024-10-03 11:58:28 +02:00
committed by GitHub
parent 7cadf60117
commit 9cf439488a

View File

@@ -1626,8 +1626,8 @@ int test_min_max_constant_buffer_size(cl_device_id deviceID, cl_context context,
/* Test running the kernel and verifying it */ /* Test running the kernel and verifying it */
threads[0] = numberOfInts; threads[0] = numberOfInts;
localThreads[0] = 1; localThreads[0] = 1;
log_info("Filling constant buffer with %d cl_ints (%d bytes).\n", log_info("Filling constant buffer with %zu cl_ints (%zu bytes).\n",
(int)threads[0], (int)(threads[0] * sizeof(cl_int))); threads[0], threads[0] * sizeof(cl_int));
error = clEnqueueNDRangeKernel(queue, kernel, 1, NULL, threads, error = clEnqueueNDRangeKernel(queue, kernel, 1, NULL, threads,
localThreads, 0, NULL, &event); localThreads, 0, NULL, &event);