Remove Rust-CUDA dependencies

This commit is contained in:
DoHoonKim
2024-05-31 16:06:37 +09:00
parent a3c0602fc1
commit 76eb986008
5 changed files with 0 additions and 28 deletions

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "nightly-2021-12-04"
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]

View File

@@ -7,4 +7,3 @@ edition = "2021"
crate-type = ["cdylib", "rlib"]
[dependencies]
cuda_std = "0.2.2"

View File

@@ -1,18 +0,0 @@
#![cfg_attr(
target_os = "cuda",
no_std,
feature(register_attr),
register_attr(nvvm_internal)
)]
use cuda_std::*;
extern crate alloc;
#[kernel]
pub unsafe fn add(a: &[f32], b: &[f32], c: *mut f32) {
let idx = thread::index_1d() as usize;
if idx < a.len() {
let elem = &mut *c.add(idx);
*elem = a[idx] + b[idx];
}
}

View File

@@ -6,8 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
cust = "0.3"
[build-dependencies]
cuda_builder = "0.3.0"

View File

@@ -1,8 +1,2 @@
use cuda_builder::CudaBuilder;
fn main() {
CudaBuilder::new("../cuda_sumcheck")
.copy_to("./ptx_folder/path.ptx")
.build()
.unwrap();
}