MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / ipcRecvData

Function ipcRecvData

Common/helper_multiprocess.cpp:510–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510int ipcRecvData(ipcHandle *handle, void *data, size_t sz) {
511 DWORD cbRead = 0;
512
513 if (!ReadFile(handle->hMailslot[0], data, (DWORD)sz, &cbRead, NULL)) {
514 printf("IPC failure: ReadFile failed with %d.\n", GetLastError());
515 return -1;
516 }
517
518 if (sz != (size_t)cbRead) {
519 printf(
520 "IPC failure: ReadFile didn't receive the expected number of bytes\n");
521 return -1;
522 }
523
524 return 0;
525}
526
527int ipcSendShareableHandles(
528 ipcHandle *handle, const std::vector<ShareableHandle> &shareableHandles,

Callers 1

ipcRecvShareableHandlesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected