NvidiaTarget

Struct NvidiaTarget 

Source
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

Source

pub fn new() -> Option<Self>

2026-09-25: Locate nvcc (see find_nvcc); None if it is not found.

Source

pub fn with_compiler(nvcc_path: PathBuf) -> Self

Trait Implementations§

Source§

impl ComputeTarget for NvidiaTarget

Source§

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

2026-09-25: File extension of compiled modules, without the dot ("ptx" for NvidiaTarget).
Source§

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>

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>

2026-09-25: Compile one kernel source file. Read more
Source§

fn vendor(&self) -> Vendor

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.