12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.9 OpenGL Interoperability 53Parameters:bufObj - Buffer object to unmapReturns:cudaSuccess, cudaErrorInvalidDevicePointer, cudaErrorUnmapBufferObjectFailedNote:Note that this function may also return error codes from previous, asynchronous launches.See also:cudaGLSetGLDevice, cudaGLRegisterBufferObject, cudaGLMapBufferObject, cudaGLUnregisterBufferObject3.9.2.5 cudaError_t cudaGLUnregisterBufferObject (GLuint bufObj)Unregisters the buffer object of ID bufObj for access by <strong>CUDA</strong> and releases any <strong>CUDA</strong> resources associated withthe buffer. Once a buffer is unregistered, it may no longer be mapped by <strong>CUDA</strong>. The GL context used to create thebuffer, or another context from the same share group, must be bound to the current thread when this is called.Parameters:bufObj - Buffer object to unregisterReturns:Note:See also:cudaSuccessNote that this function may also return error codes from previous, asynchronous launches.cudaGLSetGLDevice, cudaGLRegisterBufferObject, cudaGLMapBufferObject, cudaGLUnmapBufferObject3.9.2.6 cudaError_t cudaWGLGetDevice (int ∗ device, HGPUNV hGpu)Returns the <strong>CUDA</strong> device associated with a hGpu, if applicable.Parameters:device - Returns the device associated with hGpu, or -1 if hGpu is not a compute device.hGpu - Handle to a GPU, as queried via WGL_NV_gpu_affinity()Returns:cudaSuccessNote:Note that this function may also return error codes from previous, asynchronous launches.See also:WGL_NV_gpu_affinity, cudaGLSetGLDeviceGenerated on Wed Apr 1 16:11:42 2009 for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!