Skip to content

Commit 950aec1

Browse files
committed
gating the use of crate::intrinsics as raw behind the use of nvptx architecture
1 parent 7e2d1d1 commit 950aec1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/cuda_std/src/float_ext.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
//! Extension trait for [`f32`] and [`f64`], providing high level wrappers on top of
2-
//! raw libdevice intrinsics from [`intrinsics`](crate::intrinsics).
2+
//! crate::intrinsics libdevice intrinsics from [`intrinsics`](crate::intrinsics).
33
44
use cuda_std_macros::gpu_only;
55

6+
#[cfg(target_arch = "nvptx64")]
7+
use crate::intrinsics as raw;
8+
69
// allows us to add new functions to the trait at any time without needing a new major version.
710
mod private {
811
pub trait Sealed {}

0 commit comments

Comments
 (0)