mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-09-08 02:26:20 +00:00
Start macroizing host code
This commit is contained in:
parent
79362757ed
commit
6c2a8576c2
7 changed files with 109 additions and 226 deletions
|
@ -6,3 +6,4 @@ edition = "2018"
|
|||
|
||||
[dependencies]
|
||||
cuda_base = { path = "../cuda_base" }
|
||||
hip_runtime-sys = { path = "../ext/hip_runtime-sys" }
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue