pub struct OnnxRuntimeConfig {
pub python_bin: String,
pub dry_run: bool,
pub rocm_version: Option<String>,
pub rocm_release: Option<String>,
pub gpu_arch: Option<String>,
pub workdir: Option<PathBuf>,
pub eigen_path: Option<PathBuf>,
pub use_preinstalled_eigen: bool,
pub install_method: OnnxInstallMethod,
}Expand description
Configuration for the ONNX Runtime installer.
Fields§
§python_bin: StringPython binary to use.
dry_run: boolWhether to run in dry-run mode.
rocm_version: Option<String>ROCm version string (e.g., “7.2.0”).
rocm_release: Option<String>ROCm release for AMD repo URL (e.g., “7.2.4”).
gpu_arch: Option<String>GPU architecture string (e.g., “gfx1100”).
workdir: Option<PathBuf>Working directory for the build (defaults to /tmp/onnxruntime-rocm).
eigen_path: Option<PathBuf>Preinstalled Eigen path.
use_preinstalled_eigen: boolWhether to use preinstalled Eigen.
install_method: OnnxInstallMethodInstall method (default: MIGraphX wheel from AMD repo).
Implementations§
Source§impl OnnxRuntimeConfig
impl OnnxRuntimeConfig
Sourcepub fn rocm_version(&self) -> &str
pub fn rocm_version(&self) -> &str
Get the effective ROCm version string.
Sourcepub fn rocm_release(&self) -> &str
pub fn rocm_release(&self) -> &str
Get the effective ROCm release string (for AMD repo URL).
Trait Implementations§
Source§impl Clone for OnnxRuntimeConfig
impl Clone for OnnxRuntimeConfig
Source§fn clone(&self) -> OnnxRuntimeConfig
fn clone(&self) -> OnnxRuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OnnxRuntimeConfig
impl Debug for OnnxRuntimeConfig
Auto Trait Implementations§
impl Freeze for OnnxRuntimeConfig
impl RefUnwindSafe for OnnxRuntimeConfig
impl Send for OnnxRuntimeConfig
impl Sync for OnnxRuntimeConfig
impl Unpin for OnnxRuntimeConfig
impl UnsafeUnpin for OnnxRuntimeConfig
impl UnwindSafe for OnnxRuntimeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more