File tree 1 file changed +4
-4
lines changed
Samples/Desktop/D3D12HelloWorld/src/HelloWorkGraphs
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ void firstNode(
80
80
}
81
81
82
82
// --------------------------------------------------------------------------------------------------------------------------------
83
- // seconcNode is thread launch, so one thread per input record.
83
+ // secondNode is thread launch, so one thread per input record.
84
84
//
85
85
// Logs to the UAV and then sends a task to thirdNode
86
86
// --------------------------------------------------------------------------------------------------------------------------------
@@ -121,7 +121,7 @@ void thirdNode(
121
121
// flushing the current work.
122
122
if (threadIndex >= inputData.Count ())
123
123
return ;
124
-
124
+
125
125
for (uint i = 0 ; i < c_numEntryRecords; i++)
126
126
{
127
127
g_sum[i] = 0 ;
@@ -141,6 +141,6 @@ void thirdNode(
141
141
for (uint l = 0 ; l < c_numEntryRecords; l++)
142
142
{
143
143
uint recordIndex = c_numEntryRecords + l;
144
- UAV[recordIndex] = g_sum[l];
144
+ InterlockedAdd ( UAV[recordIndex], g_sum[l]) ;
145
145
}
146
- }
146
+ }
You can’t perform that action at this time.
0 commit comments