Can cudaIpcGetMemHandle
use ptr created by cudaMallocManaged
?
I make some experiments and get the error of cudaErrorInvalidValue, even though using cudaMemPrefetchAsync
to prefetch ptr to device memory.
So, can we get the conclusion: cudaIpcGetMemHandle
can only use ptr created by cudaMalloc
?
This is explicitly stated in the documentation.
Takes a pointer to the base of an existing device memory allocation created with cudaMalloc and exports it for use in another process