code: public static int cudaGraphicsMapResources(int count, cudaGraphicsResource resources[], cudaStream_t stream)
      {
          return checkResult(cudaGraphicsMapResourcesNative(count, resources, stream));
      }
docs: Map graphics resources for access by CUDA.
  
  <pre>
  cudaError_t cudaGraphicsMapResources (
  int  count,
  cudaGraphicsResource_t* resources,
  cudaStream_t stream = 0 )
  </pre>
  <div>
  <p>Map graphics resources for access by
  CUDA.  Maps the <tt>count</tt> graphics resources in <tt>resources</tt>
  for access by CUDA.
  </p>
  <p>The resources in <tt>resources</tt>
  may be accessed by CUDA until they are unmapped. The graphics API from
  which <tt>resources</tt> were registered should not access any
  resources while they are mapped by CUDA. If an application does so,
  the results are
  undefined.
  </p>
  <p>This function provides the synchronization
  guarantee that any graphics calls issued before cudaGraphicsMapResources()
  will complete before any subsequent CUDA work issued in <tt>stream</tt>
  begins.
  </p>
  <p>If <tt>resources</tt> contains any
  duplicate entries then cudaErrorInvalidResourceHandle is returned. If
  any of <tt>resources</tt> are presently mapped for access by CUDA then
  cudaErrorUnknown is returned.
  </p>
  <div>
  <span>Note:</span>
  <p>Note that this
  function may also return error codes from previous, asynchronous
  launches.
  </p>
  </div>
  </p>
  </div>
  
  @param count Number of resources to map
  @param resources Resources to map for CUDA
  @param stream Stream for synchronization
  
  @return cudaSuccess, cudaErrorInvalidResourceHandle, cudaErrorUnknown
  
  @see JCuda#cudaGraphicsResourceGetMappedPointer
  @see JCuda#cudaGraphicsSubResourceGetMappedArray
  @see JCuda#cudaGraphicsUnmapResources