denzp / rust-ptx-linker

The missing puzzle piece for NVPTX experience with Rust
MIT License
53 stars 11 forks source link

How to link with --arch flags? #30

Closed jon-chuang closed 4 years ago

jon-chuang commented 4 years ago

I'm having trouble figuring out how to link with --arch=sm_xx flags when calling cargo build --target nvptx..., would appreciate some help.

jon-chuang commented 4 years ago

turns out I was missing an = sign, just pass "RUSTFLAGS=-C link-arg=-arch=sm_xx" cargo...