![]() Println!("cargo:rustc-link-lib=static=kernel") Įrror: linking with cc failed: exit code: 1 ![]() Nvcc -compiler-options '-fPIC' -Wno-deprecated-gpu-targets -ccbin clang-3.8 -dlink -o kernel_link.o kernel.o -lcudadevrt -lcudartįn main() ", "kernel") Nvcc -compiler-options '-fPIC' -Wno-deprecated-gpu-targets -ccbin clang-3.8 -rdc=true -c kernel.cu Now I am trying to do it manually, I run these commands to generate a library from my cuda kernel : My first attempt leaded to this unanswered question on stackoverflow : I've been struggling to link my custom cuda kernel to my rust project,
0 Comments
Leave a Reply. |