|
Takes a pointer p and loads the corresponding module phMod into the current context. The pointer may be obtained by mapping a cubin or PTX file, passing a cubin or PTX file as a text string, or incorporating a cubin object into the executable resources and using operating system calls such as Windows FindResource() to obtain the pointer.
- Parameters:
-
| phMod | - Returned module |
| p | - Module data to load |
- Returns:
- CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE, CUDA_ERROR_OUT_OF_MEMORY
- Note:
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cuModuleGetFunction, cuModuleGetGlobal, cuModuleGetTexRef, cuModuleLoad, cuModuleLoadDataEx, cuModuleLoadFatBinary, cuModuleUnload
|