我正在尝试按照一些说明在 GPU 上运行我的 Rust 代码。但是,我无法编译它。
尽管我每晚安装 Rust,Xargo 仍然声称没有安装 Rust 每晚。我尝试卸载并重新安装 Xargo 两次,但没有任何改变。
xargo rustc --target nvptx64-nvidia-cuda -- --emit=asm
输出:
WARNING: the sysroot can't be built for the Stable channel. Switch to nightly.
Compiling kernel v0.1.0 (file:///C:/Users/shado/Workspace/kernel)
error[E0463]: can't find crate for `core`
|
= note: the `nvptx64-nvidia-cuda` target may not be installed
error: aborting due to previous error
error: Could not compile `kernel`.
To learn more, run the command again with --verbose.
rustc --version
输出:
rustc 1.25.0-nightly (15a1e2844 2018-01-20)