Skip to content

Update toolchain to nightly-03-02. #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 13, 2025
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[workspace]

resolver = "2"

members = [
"crates/*",
"crates/optix/examples/ex*",
Expand Down
14 changes: 8 additions & 6 deletions crates/cuda_builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,13 @@ fn invoke_rustc(builder: &CudaBuilder) -> Result<PathBuf, CudaBuilderError> {

let new_path = get_new_path_var();

let mut rustflags = vec![format!(
"-Zcodegen-backend={}",
rustc_codegen_nvvm.display(),
)];
let mut rustflags = vec![
format!("-Zcodegen-backend={}", rustc_codegen_nvvm.display()),
"-Zcrate-attr=feature(register_tool)".into(),
"-Zcrate-attr=register_tool(nvvm_internal)".into(),
"-Zcrate-attr=no_std".into(),
"-Zsaturating_float_casts=false".into(),
];

if let Some(emit) = &builder.emit {
let string = match emit {
Expand Down Expand Up @@ -437,8 +440,7 @@ fn invoke_rustc(builder: &CudaBuilder) -> Result<PathBuf, CudaBuilderError> {
"--lib",
"--message-format=json-render-diagnostics",
"-Zbuild-std=core,alloc",
"--target",
"nvptx64-nvidia-cuda",
"--target=nvptx64-nvidia-cuda",
]);

cargo.args(&builder.build_args);
Expand Down
1 change: 1 addition & 0 deletions crates/cuda_std/src/atomic/intrinsics.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Raw CUDA-specific atomic functions that map to PTX instructions.

use crate::gpu_only;
use core::arch::asm;
use core::concat;
use paste::paste;

Expand Down
Loading
Loading