From 08e98dda74bdef40323f5e41b61cfab6fea4f100 Mon Sep 17 00:00:00 2001 From: Sylvain Benner Date: Fri, 25 Oct 2024 12:59:20 -0400 Subject: [PATCH] Bump version to 0.0.5 --- Cargo.lock | 2 +- Cargo.toml | 2 +- crates/cubecl-hip-sys/src/lib.rs | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3e37b0a..3291624 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -172,7 +172,7 @@ checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" [[package]] name = "cubecl-hip-sys" -version = "0.0.4" +version = "0.0.5" dependencies = [ "libc", "rstest", diff --git a/Cargo.toml b/Cargo.toml index 99f89ca..edd3511 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ members = [ [workspace.package] edition = "2021" -version = "0.0.4" +version = "0.0.5" license = "MIT OR Apache-2.0" readme = "README.md" diff --git a/crates/cubecl-hip-sys/src/lib.rs b/crates/cubecl-hip-sys/src/lib.rs index c012cc9..a68b92e 100644 --- a/crates/cubecl-hip-sys/src/lib.rs +++ b/crates/cubecl-hip-sys/src/lib.rs @@ -31,7 +31,7 @@ extern "C" __global__ void kernel(float a, float *x, float *b, float *out, int n } "#, ) - .expect("Should construct kernel string"); + .expect("Should construct kernel string"); let func_name = CString::new("kernel".to_string()).unwrap(); // reference: https://rocm.docs.amd.com/projects/HIP/en/docs-6.0.0/user_guide/hip_rtc.html @@ -194,7 +194,8 @@ extern "C" __global__ void kernel(float a, float *x, float *b, float *out, int n let mut module: hipModule_t = ptr::null_mut(); let mut function: hipFunction_t = ptr::null_mut(); unsafe { - let status_module = hipModuleLoadData(&mut module, code.as_ptr() as *const libc::c_void); + let status_module = + hipModuleLoadData(&mut module, code.as_ptr() as *const libc::c_void); assert_eq!( status_module, HIP_SUCCESS, "Should load compiled code into module" @@ -278,5 +279,3 @@ extern "C" __global__ void kernel(float a, float *x, float *b, float *out, int n } } } - -