Skip to content

Commit

Permalink
HelloWorkGraphs shader tweak (#862)
Browse files Browse the repository at this point in the history
* error printing fixes

* helloWorkGraph shader tweak
  • Loading branch information
amarpMSFT authored Mar 25, 2024
1 parent 2ec4257 commit 51d0c1c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void firstNode(
}

// --------------------------------------------------------------------------------------------------------------------------------
// seconcNode is thread launch, so one thread per input record.
// secondNode is thread launch, so one thread per input record.
//
// Logs to the UAV and then sends a task to thirdNode
// --------------------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -121,7 +121,7 @@ void thirdNode(
// flushing the current work.
if (threadIndex >= inputData.Count())
return;

for (uint i = 0; i < c_numEntryRecords; i++)
{
g_sum[i] = 0;
Expand All @@ -141,6 +141,6 @@ void thirdNode(
for (uint l = 0; l < c_numEntryRecords; l++)
{
uint recordIndex = c_numEntryRecords + l;
UAV[recordIndex] = g_sum[l];
InterlockedAdd(UAV[recordIndex],g_sum[l]);
}
}
}

0 comments on commit 51d0c1c

Please sign in to comment.