cuda - Zero-copy memory, memory-mapped file
问题 I am trying to create a mapped memory file, containing uint32_t s, and then use that as zero-copy pinned memory as shown below for CUDA. I am getting the cudaErrorInvalidValue when getting the device pointer, having allocated space and mapped the memory from file. I know the error message (from the API) means : This indicates that one or more of the parameters passed to the API call is not within an acceptable range of values. But I'm struggling to figure out why I'm having this problem....