mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
Rollup merge of #156442 - Flakebi:gpu-docs, r=RalfJung
Show intrinsics::gpu in docs It was previously not visible (unless compiling docs for amdgpu, which I guess nobody does). Follow other specific intrinsics and always include them in docs. Now looks like this: <img width="1220" height="446" alt="2026-05-11_10-51-05" src="https://github.com/user-attachments/assets/c3a98f0e-2803-4697-87a8-1cc8ff01815c" /> r? @ZuseZ4 (I hope you are fine with reviewing this, please re-assign if not :))
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
#[rustc_intrinsic]
|
||||
#[rustc_nounwind]
|
||||
#[unstable(feature = "gpu_launch_sized_workgroup_mem", issue = "135513")]
|
||||
#[cfg(any(target_arch = "amdgpu", target_arch = "nvptx64"))]
|
||||
#[cfg(any(doc, target_arch = "amdgpu", target_arch = "nvptx64"))]
|
||||
pub fn gpu_launch_sized_workgroup_mem<T>() -> *mut T;
|
||||
|
||||
/// Returns a pointer to the HSA kernel dispatch packet.
|
||||
@@ -63,6 +63,6 @@
|
||||
/// [hsa.h]: https://github.com/ROCm/rocm-systems/blob/rocm-7.1.0/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa.h#L2959
|
||||
#[rustc_nounwind]
|
||||
#[rustc_intrinsic]
|
||||
#[cfg(target_arch = "amdgpu")]
|
||||
#[cfg(any(doc, target_arch = "amdgpu"))]
|
||||
#[must_use = "returns a pointer that does nothing unless used"]
|
||||
pub fn amdgpu_dispatch_ptr() -> *const ();
|
||||
|
||||
Reference in New Issue
Block a user