Skip to content

Commit

Permalink
Change format specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelVarvarin committed Nov 26, 2024
1 parent 05effa5 commit 9568256
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/helloWorldGridSync/src/helloWorldGridSync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct HelloWorldKernel
size_t gridThreadExtent = alpaka::getWorkDiv<alpaka::Grid, alpaka::Threads>(acc)[0];

if(gridThreadIdx == 0)
printf("Hello, World from alpaka thread %u!\n", gridThreadIdx);
printf("Hello, World from alpaka thread %zu!\n", gridThreadIdx);

// Write the index of the thread to array.
array[gridThreadIdx] = gridThreadIdx;
Expand All @@ -44,8 +44,8 @@ struct HelloWorldKernel
{
*success = false;
printf(
"After grid sync, this thread is %lu, thread on the opposite side is %lu. Their sum is %lu, expected: "
"%lu.%s",
"After grid sync, this thread is %zu, thread on the opposite side is %zu. Their sum is %zu, expected: "
"%zu.%s",
gridThreadIdx,
gridThreadIdxOpposite,
sum,
Expand Down

0 comments on commit 9568256

Please sign in to comment.