Fix one dark api signature

This commit is contained in:
Andrzej Janik
2025-07-07 19:54:36 +02:00
parent 08795a3f23
commit bb112c85d1
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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!()
}

View File

@ -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

View File

@ -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()