Skip to content

Commit 96cd3af

Browse files
PMQ9LegNeato
authored andcommitted
add missing --use-constant-memory-space flag
1 parent ce296fc commit 96cd3af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/cuda_builder/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,10 @@ fn invoke_rustc(builder: &CudaBuilder) -> Result<PathBuf, CudaBuilderError> {
761761
llvm_args.push("--override-libm".to_string());
762762
}
763763

764+
if builder.use_constant_memory_space {
765+
llvm_args.push("--use-constant-memory-space".to_string());
766+
}
767+
764768
if let Some(path) = &builder.final_module_path {
765769
llvm_args.push("--final-module-path".to_string());
766770
llvm_args.push(path.to_str().unwrap().to_string());

0 commit comments

Comments
 (0)