File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
offload/plugins-nextgen/cuda/src Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -630,8 +630,6 @@ struct CUDADeviceTy : public GenericDeviceTy {
630
630
Error synchronizeImpl (__tgt_async_info &AsyncInfo) override {
631
631
CUstream Stream = reinterpret_cast <CUstream>(AsyncInfo.Queue );
632
632
CUresult Res;
633
- // If we have an RPC server running on this device we will continuously
634
- // query it for work rather than blocking.
635
633
Res = cuStreamSynchronize (Stream);
636
634
637
635
// Once the stream is synchronized, return it to stream pool and reset
@@ -1287,13 +1285,13 @@ Error CUDAKernelTy::launchImpl(GenericDeviceTy &GenericDevice,
1287
1285
1288
1286
// Register a callback to indicate when the kernel is complete.
1289
1287
if (GenericDevice.getRPCServer ())
1290
- cuStreamAddCallback (
1288
+ cuLaunchHostFunc (
1291
1289
Stream,
1292
- [](CUstream Stream, CUresult Status, void *Data) {
1290
+ [](void *Data) {
1293
1291
GenericPluginTy &Plugin = *reinterpret_cast <GenericPluginTy *>(Data);
1294
1292
Plugin.getRPCServer ().Thread ->finish ();
1295
1293
},
1296
- &GenericDevice.Plugin , /* flags= */ 0 );
1294
+ &GenericDevice.Plugin );
1297
1295
1298
1296
return Plugin::check (Res, " Error in cuLaunchKernel for '%s': %s" , getName ());
1299
1297
}
You can’t perform that action at this time.
0 commit comments