pub struct NvidiaTarget { /* private fields */ }Expand description
2026-09-25: NVIDIA compilation target: .cu to PTX with
nvcc --ptx -arch=<arch> -O3.
Implementations§
Source§impl NvidiaTarget
impl NvidiaTarget
Trait Implementations§
Source§impl ComputeTarget for NvidiaTarget
impl ComputeTarget for NvidiaTarget
Source§fn source_extension(&self) -> &str
fn source_extension(&self) -> &str
2026-09-25: File extension of kernel source files, without the dot
(
"cu" for NvidiaTarget).Source§fn output_extension(&self) -> &str
fn output_extension(&self) -> &str
2026-09-25: File extension of compiled modules, without the dot
(
"ptx" for NvidiaTarget).Source§fn output_is_text(&self) -> bool
fn output_is_text(&self) -> bool
2026-09-25: Whether the compiled output is text (
include_str! can
embed it) or binary (include_bytes! only).Source§fn find_compiler(&self) -> Option<PathBuf>
fn find_compiler(&self) -> Option<PathBuf>
2026-09-25: The compiler executable, or
None if it is not installed.Source§fn compile(
&self,
source: &Path,
output: &Path,
arch: &str,
extra_flags: &[String],
) -> Result<(), String>
fn compile( &self, source: &Path, output: &Path, arch: &str, extra_flags: &[String], ) -> Result<(), String>
2026-09-25: Compile one kernel source file. Read more
fn vendor(&self) -> Vendor
Auto Trait Implementations§
impl Freeze for NvidiaTarget
impl RefUnwindSafe for NvidiaTarget
impl Send for NvidiaTarget
impl Sync for NvidiaTarget
impl Unpin for NvidiaTarget
impl UnwindSafe for NvidiaTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more