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,
pub runtime_version: Option<String>,
pub prebuilt_version: Option<String>,
}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 PyPI).
runtime_version: Option<String>ONNX Runtime wheel version. None uses the current bundled default.
prebuilt_version: Option<String>Pinned prebuilt onnxruntime-migraphx version for the default path.
None uses PREBUILT_MIGRAPHX_VERSION.
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).
Sourcepub fn runtime_version(&self) -> &str
pub fn runtime_version(&self) -> &str
Get the effective ONNX Runtime wheel version.
Filters an empty/whitespace Some("") to the default: a stale or
untrimmed ctx.target_version would otherwise produce an invalid
git checkout v (no tag suffix) on the source-build path. Mirrors
prebuilt_version_from_env’s empty-filtering.
Sourcepub fn prebuilt_version(&self) -> &str
pub fn prebuilt_version(&self) -> &str
Get the pinned prebuilt onnxruntime-migraphx version for the default
PyPI install path.
Trait Implementations§
Source§impl Clone for OnnxRuntimeConfig
impl Clone for OnnxRuntimeConfig
Source§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
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> ⓘ
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> ⓘ
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