code: public static int cudaGLGetDevices(int pCudaDeviceCount[], int pCudaDevices[], int cudaDeviceCount, int cudaGLDeviceList_deviceList)
      {
          return checkResult(cudaGLGetDevicesNative(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, cudaGLDeviceList_deviceList));
      }
docs: Gets the CUDA devices associated with the current OpenGL context.
  
  <pre>
  cudaError_t cudaGLGetDevices (
  unsigned int* pCudaDeviceCount,
  int* pCudaDevices,
  unsigned int  cudaDeviceCount,
  cudaGLDeviceList deviceList )
  </pre>
  <div>
  <p>Gets the CUDA devices associated with
  the current OpenGL context.  Returns in <tt>*pCudaDeviceCount</tt>
  the number of CUDA-compatible devices corresponding to the current
  OpenGL context. Also returns in <tt>*pCudaDevices</tt> at most <tt>cudaDeviceCount</tt> of the CUDA-compatible devices corresponding to
  the current OpenGL context. If any of the GPUs being used by the
  current
  OpenGL context are not CUDA capable then
  the call will return cudaErrorNoDevice.
  </p>
  <div>
  <span>Note:</span>
  <p>Note that this
  function may also return error codes from previous, asynchronous
  launches.
  </p>
  </div>
  </p>
  </div>
  
  @param pCudaDeviceCount Returned number of CUDA devices corresponding to the current OpenGL context
  @param pCudaDevices Returned CUDA devices corresponding to the current OpenGL context
  @param cudaDeviceCount The size of the output device array pCudaDevices
  @param deviceList The set of devices to return. This set may be cudaGLDeviceListAll for all devices, cudaGLDeviceListCurrentFrame for the devices used to render the current frame (in SLI), or cudaGLDeviceListNextFrame for the devices used to render the next frame (in SLI).
  
  @return cudaSuccess, cudaErrorNoDevice, cudaErrorUnknown
  
  @see JCuda#cudaGraphicsUnregisterResource
  @see JCuda#cudaGraphicsMapResources
  @see JCuda#cudaGraphicsSubResourceGetMappedArray
  @see JCuda#cudaGraphicsResourceGetMappedPointer