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.

112 Module DocumentationnumOptions - Number of optionsoptions - Options for JIToptionValues - Option values for JITReturns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUE, <strong>CUDA</strong>_ERROR_OUT_OF_MEMORY,<strong>CUDA</strong>_ERROR_NO_BINARY_FOR_GPUSee also:Note that this function may also return error codes from previous, asynchronous launches.cuModuleGetFunction, cuModuleGetGlobal, cuModuleGetTexRef, cuModuleLoad, cuModuleLoadData, cu-ModuleLoadFatBinary, cuModuleUnload3.21.2.7 CUresult cuModuleLoadFatBinary (CUmodule ∗ phMod, const void ∗ vfatCubin)Takes a pointer vfatCubin and loads the corresponding module phMod into the current context. The pointerrepresents a fat binary object, which is a collection of different cubin files, all representing the same device code, butcompiled and optimized for different architectures. There is currently no documented API for constructing and usingfat binary objects by programmers, and therefore this function is an internal function in this version of <strong>CUDA</strong>. Moreinformation can be found in the nvcc document.Parameters:phMod - Returned modulevfatCubin - Fat binary to loadReturns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUE, <strong>CUDA</strong>_ERROR_NOT_FOUND,<strong>CUDA</strong>_ERROR_OUT_OF_MEMORY, <strong>CUDA</strong>_ERROR_NO_BINARY_FOR_GPUSee also:Note that this function may also return error codes from previous, asynchronous launches.cuModuleGetFunction, cuModuleGetGlobal, cuModuleGetTexRef, cuModuleLoad, cuModuleLoadData, cu-ModuleLoadDataEx, cuModuleUnload3.21.2.8 CUresult cuModuleUnload (CUmodule mod)Unloads a module mod from the current context.Parameters:mod - Module to unloadGenerated 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!