tvm_build

Struct UserSettings

Source
pub struct UserSettings {
Show 51 fields pub use_cuda: Option<CMakeSetting>, pub use_opencl: Option<CMakeSetting>, pub use_vulkan: Option<CMakeSetting>, pub use_metal: Option<CMakeSetting>, pub use_rocm: Option<CMakeSetting>, pub rocm_path: Option<PathBuf>, pub use_hexagon_device: Option<bool>, pub use_heaxgon_dsk: Option<PathBuf>, pub use_rpc: Option<bool>, pub use_threads: Option<bool>, pub use_llvm: Option<CMakeSetting>, pub use_stackvm_runtime: Option<bool>, pub use_graph_runtime: Option<bool>, pub use_graph_runtime_debug: Option<bool>, pub use_openmp: Option<bool>, pub use_relay_debug: Option<bool>, pub use_rtti: Option<bool>, pub use_mscv_mt: Option<bool>, pub use_micro: Option<bool>, pub use_install_dev: Option<bool>, pub hide_private_symbols: Option<bool>, pub use_fallback_stl_map: Option<bool>, pub use_ethosn: Option<bool>, pub use_index_default_i64: Option<bool>, pub use_tf_tvmdsoop: Option<bool>, pub use_byodt_posit: Option<bool>, pub use_blas: Option<String>, pub use_mkl: Option<CMakeSetting>, pub use_mkldnn: Option<CMakeSetting>, pub use_dnnl_codegen: Option<bool>, pub use_cudnn: Option<bool>, pub use_cublas: Option<bool>, pub use_thrust: Option<bool>, pub use_miopen: Option<bool>, pub use_rocblas: Option<bool>, pub use_sort: Option<bool>, pub use_nnpack: Option<bool>, pub use_random: Option<bool>, pub use_micro_standalone_runtime: Option<bool>, pub use_cpp_rpc: Option<bool>, pub use_tflite: Option<bool>, pub use_tensorflow_path: Option<PathBuf>, pub use_coreml: Option<bool>, pub use_target_onnx: Option<bool>, pub use_arm_compute_lib: Option<bool>, pub use_arm_compute_lib_graph_runtime: Option<CMakeSetting>, pub use_tensorrt_codegen: Option<bool>, pub use_tensorrt_runtime: Option<CMakeSetting>, pub use_rust_ext: Option<String>, pub use_vitis_ai: Option<bool>, pub build_static_runtime: Option<bool>,
}

Fields§

§use_cuda: Option<CMakeSetting>

Build with the CUDA support enabled.

§use_opencl: Option<CMakeSetting>

Build with the CUDA runtime enabled.

§use_vulkan: Option<CMakeSetting>§use_metal: Option<CMakeSetting>§use_rocm: Option<CMakeSetting>§rocm_path: Option<PathBuf>

The path to ROCM.

§use_hexagon_device: Option<bool>

Build with Hexagon device support in TVM runtime.

§use_heaxgon_dsk: Option<PathBuf>

Path to the Hexagon SDK root (required for Hexagon support in TVM runtime or for building TVM runtime for Hexagon.

§use_rpc: Option<bool>

Whether to enable TVM RPC.

§use_threads: Option<bool>

Build with threading support.

§use_llvm: Option<CMakeSetting>

Build with LLVM, can also be set to specific llvm-config path.

§use_stackvm_runtime: Option<bool>

Enable TVM’s stackvm in the runtime.

§use_graph_runtime: Option<bool>

Build with graph runtime, defaults to ON.

§use_graph_runtime_debug: Option<bool>

Build with graph runtime debug mode, defaults to OFF.

§use_openmp: Option<bool>

Build with OpenMP thread pool implementation, defaults to OFF.

§use_relay_debug: Option<bool>

Build Relay in debug mode, defaults to OFF.

§use_rtti: Option<bool>

Build with RTTI, defaults to ON.

§use_mscv_mt: Option<bool>

Build with multi-threaded MSCV runtime.

§use_micro: Option<bool>

Build with Micro TVM support.

§use_install_dev: Option<bool>

Install compiler infrastructure, defaults to OFF.

§hide_private_symbols: Option<bool>

Compile with -fvisibility=hidden.

§use_fallback_stl_map: Option<bool>

Use TVM’s POD compatible Map, defaults to OFF.

§use_ethosn: Option<bool>

tvm_option(USE_ETHOSN “Build with Arm Ethos-N” OFF)

§use_index_default_i64: Option<bool>

Defaults the index datatype to int64.

§use_tf_tvmdsoop: Option<bool>

Build with TensorFlow TVMDSOOp.

§use_byodt_posit: Option<bool>

Build with BYODT software emulated posit custom datatype.

§use_blas: Option<String>

The blas library to be linked.

§use_mkl: Option<CMakeSetting>§use_mkldnn: Option<CMakeSetting>

“Build with MKLDNN”

§use_dnnl_codegen: Option<bool>

Enable MKLDNN (DNNL) codegen.

§use_cudnn: Option<bool>§use_cublas: Option<bool>§use_thrust: Option<bool>§use_miopen: Option<bool>§use_rocblas: Option<bool>§use_sort: Option<bool>§use_nnpack: Option<bool>§use_random: Option<bool>§use_micro_standalone_runtime: Option<bool>§use_cpp_rpc: Option<bool>§use_tflite: Option<bool>§use_tensorflow_path: Option<PathBuf>§use_coreml: Option<bool>§use_target_onnx: Option<bool>§use_arm_compute_lib: Option<bool>§use_arm_compute_lib_graph_runtime: Option<CMakeSetting>§use_tensorrt_codegen: Option<bool>

Build with TensorRT Codegen support, defaults to OFF>

§use_tensorrt_runtime: Option<CMakeSetting>

Build with TensorRT runtime, defaults to OFF.

§use_rust_ext: Option<String>

Build with Rust based compiler extensions, defaults to OFF.

§use_vitis_ai: Option<bool>

Build with VITIS-AI Codegen support, defaults to OFF.

§build_static_runtime: Option<bool>

Whether to build static libtvm_runtime.a, the default is to build the dynamic version: libtvm_runtime.so.

Trait Implementations§

Source§

impl Debug for UserSettings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for UserSettings

Source§

fn default() -> UserSettings

Returns the “default value” for a type. Read more
Source§

impl StructOpt for UserSettings

Source§

fn clap<'a, 'b>() -> App<'a, 'b>

Returns clap::App corresponding to the struct.
Source§

fn from_clap(matches: &ArgMatches<'_>) -> Self

Builds the struct from clap::ArgMatches. It’s guaranteed to succeed if matches originates from an App generated by StructOpt::clap called on the same type, otherwise it must panic.
Source§

fn from_args() -> Self
where Self: Sized,

Builds the struct from the command line arguments (std::env::args_os). Calls clap::Error::exit on failure, printing the error message and aborting the program.
Source§

fn from_args_safe() -> Result<Self, Error>
where Self: Sized,

Builds the struct from the command line arguments (std::env::args_os). Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program, so calling .exit is up to you.
Source§

fn from_iter<I>(iter: I) -> Self
where Self: Sized, I: IntoIterator, <I as IntoIterator>::Item: Into<OsString> + Clone,

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more
Source§

fn from_iter_safe<I>(iter: I) -> Result<Self, Error>
where Self: Sized, I: IntoIterator, <I as IntoIterator>::Item: Into<OsString> + Clone,

Gets the struct from any iterator such as a Vec of your making. Read more

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more