Skip to content

Commit b7a628f

Browse files
author
Jorge Aparicio
committed
put PTX intrinsics behind a cfg
these can't be used with other targets
1 parent f7f17a7 commit b7a628f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/intrinsics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ extern "rust-intrinsic" {
606606
}
607607

608608
#[cfg(not(stage0))]
609+
#[cfg(arch = "nvptx")]
609610
extern "rust-intrinsic" {
610611
pub fn thread_idx_x() -> i32;
611612
pub fn thread_idx_y() -> i32;

0 commit comments

Comments
 (0)