Maps the count interop resources in resources for access by CUDA.
The resources in resource may be accessed in CUDA kernels until they are unmapped. The graphics API should not access any resources while they are mapped by CUDA. If an application does so the results are undefined.
This function provides the synchronization guarantee that any graphics calls issued before cuGraphicsMapResources() will complete before any subsequent CUDA work issued in stream begins.