Start macroizing host code

This commit is contained in:
Andrzej Janik 2024-11-19 16:40:28 +00:00
commit 6c2a8576c2
7 changed files with 109 additions and 226 deletions

View file

@ -6,3 +6,4 @@ edition = "2018"
[dependencies]
cuda_base = { path = "../cuda_base" }
hip_runtime-sys = { path = "../ext/hip_runtime-sys" }

View file

@ -8083,3 +8083,8 @@ pub type CUresult = ::core::result::Result<(), CUerror>;
const _: fn() = || {
let _ = std::mem::transmute::<CUresult, u32>;
};
impl From<hip_runtime_sys::hipErrorCode_t> for CUerror {
fn from(error: hip_runtime_sys::hipErrorCode_t) -> Self {
Self(error.0)
}
}