Struct tvm_build::UserSettings [−][src]
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
Returns the “default value” for a type. Read more
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. Read more
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. Read more
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. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: 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
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec of your making. Read more