We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53c8400 commit 1c558b2Copy full SHA for 1c558b2
examples/cuda/cpu/add/build.rs
@@ -1,8 +1,10 @@
1
use cuda_builder::CudaBuilder;
2
3
fn main() {
4
- CudaBuilder::new("../../gpu/add_gpu")
5
- .copy_to("../../resources/add.ptx")
+ let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR exists");
+ let manifest_dir = std::path::Path::new(&manifest_dir);
6
+ CudaBuilder::new(manifest_dir.join("../../gpu/add_gpu"))
7
+ .copy_to(manifest_dir.join("../../resources/add.ptx"))
8
.build()
9
.unwrap();
10
}
0 commit comments