We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cbf279 commit 26f4e2aCopy full SHA for 26f4e2a
libc/docs/gpu/rpc.rst
@@ -231,8 +231,11 @@ but the following example shows how it can be used by a standard user.
231
do {
232
auto port = server.try_open(warp_size, /*index=*/0);
233
// From libllvmlibc_rpc_server.a in the installation.
234
- if (port)
235
- handle_libc_opcodes(*port, warp_size);
+ if (!port)
+ continue;
236
+
237
+ handle_libc_opcodes(*port, warp_size);
238
+ port->close();
239
} while (cudaStreamQuery(stream) == cudaErrorNotReady);
240
}
241
0 commit comments