File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
offload/plugins-nextgen/amdgpu/src Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1261,9 +1261,11 @@ struct AMDGPUStreamTy {
1261
1261
// Consume stream slot and compute dependencies.
1262
1262
auto [Curr, InputSignal] = consume (OutputSignal);
1263
1263
1264
- // Setup the post action to release the kernel args buffer.
1265
- if (auto Err = Slots[Curr].schedReleaseBuffer (KernelArgs, MemoryManager))
1266
- return Err;
1264
+ // Setup the post action to release the kernel args buffer, if it exists
1265
+ if (KernelArgs) {
1266
+ if (auto Err = Slots[Curr].schedReleaseBuffer (KernelArgs, MemoryManager))
1267
+ return Err;
1268
+ }
1267
1269
1268
1270
// If we are running an RPC server we want to wake up the server thread
1269
1271
// whenever there is a kernel running and let it sleep otherwise.
You can’t perform that action at this time.
0 commit comments