12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

108 Module Documentation3.21 Module ManagementFunctions• CUresult cuModuleGetFunction (CUfunction ∗func, CUmodule mod, const char ∗name)Returns a function handle.• CUresult cuModuleGetGlobal (CUdeviceptr ∗ret_dptr, unsigned int ∗ret_bytes, CUmodule mod, const char∗name)Returns a global pointer from a module.• CUresult cuModuleGetTexRef (CUtexref ∗ppTexRef, CUmodule mod, const char ∗name)Returns a handle to a texture-reference.• CUresult cuModuleLoad (CUmodule ∗phMod, const char ∗fname)Loads a compute module.• CUresult cuModuleLoadData (CUmodule ∗phMod, const void ∗p)Load a module’s data.• CUresult cuModuleLoadDataEx (CUmodule ∗phMod, const void ∗p, unsigned int numOptions, CUjit_option∗options, void ∗∗optionValues)Load a module’s data with options.• CUresult cuModuleLoadFatBinary (CUmodule ∗phMod, const void ∗vfatCubin)Load a module’s data.• CUresult cuModuleUnload (CUmodule mod)Unloads a module.3.21.1 Detailed DescriptionThis section describes the module management functions of the low-level <strong>CUDA</strong> driver application programminginterface.3.21.2 Function Documentation3.21.2.1 CUresult cuModuleGetFunction (CUfunction ∗ func, CUmodule mod, const char ∗ name)Returns in ∗func the handle of the function of name name located in module mod. If no function of that name exists,cuModuleGetFunction() returns <strong>CUDA</strong>_ERROR_NOT_FOUND.Parameters:func - Returned function handlemod - Module to retrieve function fromname - Name of function 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!