mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 01:25:15 +00:00
ignore example code blocks on nvptx and amdgpu
This commit is contained in:
@@ -351,13 +351,13 @@ pub unsafe fn sched_barrier<const MASK: u32>() {
|
||||
/// Combining multiple `sched_group_barrier` intrinsics enables an ordering of specific instruction types during instruction scheduling.
|
||||
/// For example, the following enforces a sequence of 1 VMEM read, followed by 1 VALU instruction, followed by 5 MFMA instructions.
|
||||
///
|
||||
/// ```rust
|
||||
/// ```ignore
|
||||
/// // 1 VMEM read
|
||||
/// sched_group_barrier::<32, 1, 0>()
|
||||
/// sched_group_barrier::<32, 1, 0>();
|
||||
/// // 1 VALU
|
||||
/// sched_group_barrier::<2, 1, 0>()
|
||||
/// sched_group_barrier::<2, 1, 0>();
|
||||
/// // 5 MFMA
|
||||
/// sched_group_barrier::<8, 5, 0>()
|
||||
/// sched_group_barrier::<8, 5, 0>();
|
||||
/// ```
|
||||
///
|
||||
#[doc(cfg(target_arch = "amdgpu"))]
|
||||
|
||||
@@ -157,7 +157,7 @@ unsafe extern "C" {
|
||||
/// * `format`: A pointer to the format specifier input (uses common `printf` format).
|
||||
/// * `valist`: A pointer to the valist input.
|
||||
///
|
||||
/// ```
|
||||
/// ```ignore
|
||||
/// #[repr(C)]
|
||||
/// struct PrintArgs(f32, f32, f32, i32);
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user