我正在尝试follow some instructions to run my Rust code on a GPU。但是,我无法编译它。
尽管我每晚安装Rust,但Xargo仍然声称没有安装Rust nightly。我尝试卸载并重新安装Xargo两次,没有任何改变。
<h4 class="result">
{{ $batsmen->count() }} batsmen found matching your search criteria: ('{{ $batname }}', {{ $nationality_name }})
</h4>
输出:
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
答案 0 :(得分:0)
原来我必须运行rustup default nightly
来解决这个问题。