mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-09-10 11:36:42 +00:00
Implement cuModuleGetGlobal_v2
(#454)
This commit is contained in:
parent
66db19a061
commit
4d163a4d9b
2 changed files with 10 additions and 0 deletions
|
@ -105,6 +105,15 @@ pub(crate) fn get_function(
|
||||||
unsafe { hipModuleGetFunction(hfunc, hmod.base, name) }
|
unsafe { hipModuleGetFunction(hfunc, hmod.base, name) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub(crate) fn get_global_v2(
|
||||||
|
dptr: *mut hipDeviceptr_t,
|
||||||
|
bytes: *mut usize,
|
||||||
|
hmod: &Module,
|
||||||
|
name: *const ::core::ffi::c_char,
|
||||||
|
) -> hipError_t {
|
||||||
|
unsafe { hipModuleGetGlobal(dptr, bytes, hmod.base, name) }
|
||||||
|
}
|
||||||
|
|
||||||
pub(crate) fn get_loading_mode(mode: &mut cuda_types::cuda::CUmoduleLoadingMode) -> CUresult {
|
pub(crate) fn get_loading_mode(mode: &mut cuda_types::cuda::CUmoduleLoadingMode) -> CUresult {
|
||||||
*mode = cuda_types::cuda::CUmoduleLoadingMode::CU_MODULE_EAGER_LOADING;
|
*mode = cuda_types::cuda::CUmoduleLoadingMode::CU_MODULE_EAGER_LOADING;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
@ -112,6 +112,7 @@ cuda_macros::cuda_function_declarations!(
|
||||||
cuMemsetD32_v2,
|
cuMemsetD32_v2,
|
||||||
cuMemsetD8_v2,
|
cuMemsetD8_v2,
|
||||||
cuModuleGetFunction,
|
cuModuleGetFunction,
|
||||||
|
cuModuleGetGlobal_v2,
|
||||||
cuModuleGetLoadingMode,
|
cuModuleGetLoadingMode,
|
||||||
cuModuleLoadData,
|
cuModuleLoadData,
|
||||||
cuModuleUnload,
|
cuModuleUnload,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue