Skip to content

Commit

Permalink
Fix printing in test_api_min_max (#2102)
Browse files Browse the repository at this point in the history
before: Filling constant buffer with 553805440 cl_ints (-2079745536
bytes).
after: Filling constant buffer with 553805440 cl_ints (2215221760
bytes).
  • Loading branch information
jwarchul authored Oct 3, 2024
1 parent 7cadf60 commit 9cf4394
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_conformance/api/test_api_min_max.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
threads[0] = numberOfInts;
localThreads[0] = 1;
log_info("Filling constant buffer with %d cl_ints (%d bytes).\n",
(int)threads[0], (int)(threads[0] * sizeof(cl_int)));
log_info("Filling constant buffer with %zu cl_ints (%zu bytes).\n",
threads[0], threads[0] * sizeof(cl_int));

error = clEnqueueNDRangeKernel(queue, kernel, 1, NULL, threads,
localThreads, 0, NULL, &event);
Expand Down

0 comments on commit 9cf4394

Please sign in to comment.