mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-02 14:57:43 +03:00
Fix one dark api signature
This commit is contained in:
@ -227,7 +227,7 @@ dark_api! {
|
||||
[1] = get_module_from_cubin(
|
||||
module: *mut cuda_types::cuda::CUmodule,
|
||||
fatbinc_wrapper: *const cuda_types::dark_api::FatbincWrapper
|
||||
) -> (),
|
||||
) -> cuda_types::cuda::CUresult,
|
||||
[2] = cudart_interface_fn2(
|
||||
pctx: *mut cuda_types::cuda::CUcontext,
|
||||
dev: cuda_types::cuda::CUdevice
|
||||
|
@ -106,7 +106,7 @@ impl ::dark_api::cuda::CudaDarkApi for DarkApi {
|
||||
unsafe extern "system" fn get_module_from_cubin(
|
||||
module: *mut cuda_types::cuda::CUmodule,
|
||||
fatbinc_wrapper: *const cuda_types::dark_api::FatbincWrapper,
|
||||
) -> () {
|
||||
) -> cuda_types::cuda::CUresult {
|
||||
todo!()
|
||||
}
|
||||
|
||||
|
@ -286,7 +286,7 @@ impl DarkApiDump {
|
||||
fatbinc_wrapper: *const cuda_types::dark_api::FatbincWrapper,
|
||||
state: &mut trace::StateTracker,
|
||||
fn_logger: &mut FnCallLog,
|
||||
_result: (),
|
||||
_result: CUresult,
|
||||
) {
|
||||
fn_logger.try_(|fn_logger| unsafe {
|
||||
trace::record_submodules_from_wrapped_fatbin(*module, fatbinc_wrapper, fn_logger, state)
|
||||
@ -391,7 +391,7 @@ impl ::dark_api::cuda::CudaDarkApi for DarkApiDump {
|
||||
[1] = get_module_from_cubin(
|
||||
module: *mut cuda_types::cuda::CUmodule,
|
||||
fatbinc_wrapper: *const cuda_types::dark_api::FatbincWrapper // FatbincWrapper
|
||||
) -> (),
|
||||
) -> cuda_types::cuda::CUresult,
|
||||
[6] = get_module_from_cubin_ext1(
|
||||
result: *mut cuda_types::cuda::CUmodule,
|
||||
fatbinc_wrapper: *const cuda_types::dark_api::FatbincWrapper, // FatbincWrapper
|
||||
|
@ -380,7 +380,7 @@ impl Display for ErrorEntry {
|
||||
observed,
|
||||
} => write!(
|
||||
f,
|
||||
"Unexpected field {}. Expected one of: {{{}}}, observed: {}",
|
||||
"Unexpected field {}. Expected one of: [{}], observed: {}",
|
||||
field_name,
|
||||
expected
|
||||
.iter()
|
||||
|
Reference in New Issue
Block a user