mirror of
https://github.com/pseXperiments/cuda-sumcheck.git
synced 2026-01-09 20:37:55 -05:00
Remove Rust-CUDA dependencies
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2021-12-04"
|
||||
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
|
||||
|
||||
@@ -7,4 +7,3 @@ edition = "2021"
|
||||
crate-type = ["cdylib", "rlib"]
|
||||
|
||||
[dependencies]
|
||||
cuda_std = "0.2.2"
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -1,8 +1,2 @@
|
||||
use cuda_builder::CudaBuilder;
|
||||
|
||||
fn main() {
|
||||
CudaBuilder::new("../cuda_sumcheck")
|
||||
.copy_to("./ptx_folder/path.ptx")
|
||||
.build()
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user