CUDA 3.0 Beta includes driver and runtime api interoperability as one of its features. However, CUDA 3.0 Beta came with CUDA 2.3 documentation, so I don’t know how to access these new features. Does anyone know the syntax for using the driver and runtime APIs together? For example, I need to allocate data with the driver API, which returns a CUdeviceptr, and then use the pointer with a runtime API function which expects a float*. How can I convert the CUdeviceptr into a float*?
Explicitly casting produces invalid pointers which and cause CUDA errors. I’m assuming there’s another way in CUDA 3.0 to convert between runtime API pointers and driver API CUdeviceptr s.