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.21 Module Management 109Returns: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_FOUNDSee also:Note that this function may also return error codes from previous, asynchronous launches.cuModuleGetGlobal, cuModuleGetTexRef, cuModuleLoad, cuModuleLoadData, cuModuleLoadDataEx, cu-ModuleLoadFatBinary, cuModuleUnload3.21.2.2 CUresult cuModuleGetGlobal (CUdeviceptr ∗ ret_dptr, unsigned int ∗ ret_bytes, CUmodule mod,const char ∗ name)Returns in ∗ret_dptr and ∗ret_bytes the base pointer and size of the global of name name located in modulemod. If no variable of that name exists, cuModuleGetGlobal() returns <strong>CUDA</strong>_ERROR_NOT_FOUND. Both parametersret_dptr and ret_bytes are optional. If one of them is NULL, it is ignored.Parameters:ret_dptr - Returned global device pointerret_bytes - Returned global size in bytesmod - Module to retrieve function fromname - Name of global to retrieveReturns: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_FOUNDSee also:Note that this function may also return error codes from previous, asynchronous launches.cuModuleGetFunction, cuModuleGetTexRef, cuModuleLoad, cuModuleLoadData, cuModuleLoadDataEx, cu-ModuleLoadFatBinary, cuModuleUnload3.21.2.3 CUresult cuModuleGetTexRef (CUtexref ∗ ppTexRef, CUmodule mod, const char ∗ name)Returns in ∗ppTexRef the handle of the texture reference of name name in the module mod. If no texture referenceof that name exists, cuModuleGetTexRef() returns <strong>CUDA</strong>_ERROR_NOT_FOUND. This texture reference handleshould not be destroyed, since it will be destroyed when the module is unloaded.Parameters:ppTexRef - Returned global device pointermod - Module to retrieve texture-reference fromname - Name of texture-reference to retrieveGenerated 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!