MIVisionX environment variables#
This section describes the most important MIVisionX environment variables, which are grouped by functionality.
Core OpenVX Configuration#
The core OpenVX configuration environment variables for MIVisionX are collected in the following table.
Environment variable |
Value |
|---|---|
AGO_DEFAULT_TARGETSets the default execution target for OpenVX kernels.
|
“GPU”: Execute kernels on GPU
“CPU”: Execute kernels on CPU
Unset: Use library default target
|
AGO_BUFFER_MERGE_FLAGSControls buffer merging optimization flags.
|
Integer bitmask value
Higher values: More aggressive merging
0: Disable buffer merging
|
AGO_THREAD_CONFIGConfigures thread usage for CPU execution.
|
Integer value (likely number of threads)
0: Use default threading
Positive integer: Specific thread count
|
VX_GRAPH_ATTRIBUTE_AMD_OPTIMIZER_FLAGSSets OpenVX graph optimizer flags for AMD extensions.
|
Integer bitmask value
0: Disable optimizations
Positive values: Enable specific optimizations
|
GPU and Device Configuration#
The GPU and device configuration environment variables for MIVisionX are collected in the following table.
Environment variable |
Value |
|---|---|
GPU_ENABLE_WGP_MODEControls Workgroup Processor (WGP) mode on RDNA GPUs that support both CU and WGP modes.
|
0: Disable WGP mode (use CU mode)
1 or any non-zero: Enable WGP mode (default)
Only applies to GPUs with major version >= 10
|
OpenCL Configuration#
The OpenCL configuration environment variables for MIVisionX are collected in the following table.
Environment variable |
Value |
|---|---|
AGO_OPENCL_PLATFORMOverrides the default OpenCL platform selection.
|
String specifying OpenCL platform name
Used to select specific OpenCL implementation
|
AGO_OPENCL_VERSION_CHECKControls OpenCL version checking behavior.
|
String value controlling version validation
May disable or modify version requirements
|
AGO_OPENCL_BUILD_OPTIONSSpecifies additional OpenCL kernel build options.
|
String containing OpenCL compiler flags
Passed to OpenCL kernel compilation
|
AGO_OPENCL_DEVICE_INFOControls OpenCL device information reporting.
|
String value controlling device info output
Used for debugging device capabilities
|
Debugging and Profiling#
The debugging and profiling environment variables for MIVisionX are collected in the following table.
Environment variable |
Value |
|---|---|
AGO_DUMP_GPUEnables GPU kernel dumping for debugging purposes.
|
String value enabling GPU kernel dump
Used for analyzing GPU kernel behavior
|
Stitching Configuration#
The stitching configuration environment variables for MIVisionX are collected in the following table.
Environment variable |
Value |
|---|---|
DRAW_SEAMEnables drawing of seam lines for verification in stitching operations.
|
0: Disable seam drawing (default)
1: Enable seam drawing visualization
|
SEAM_ADJUSTControls seam adjustment behavior in stitching.
|
0: Disable seam adjustment (default)
1: Enable dynamic seam adjustment
|
PRINT_COSTEnables printing of cost calculations during seam finding.
|
0: Disable cost printing (default)
1: Print cost matrix values for debugging
|
SEAM_FIND_TARGETSets the target method for seam finding algorithms.
|
Integer value (algorithm selector)
Different values select different seam finding methods
|
VIEW_SCENE_CHANGEControls view scene change detection behavior.
|
0: Disable scene change detection
1: Enable scene change detection
Higher values: More sensitive detection
|
SEAM_THRESHOLDSets threshold value for seam detection algorithms.
|
Integer value (0-255 typical range)
Lower values: More sensitive seam detection
Higher values: Less sensitive seam detection
|
SCENE_DURATIONSets duration for scene analysis in stitching.
|
Integer value (likely in frames or milliseconds)
Controls temporal window for scene analysis
|
SEAM_FREQUENCYControls frequency of seam finding operations.
|
Integer value (likely in frames)
1: Find seams every frame
Higher values: Find seams less frequently
|
SEAM_FIND_MODESets the operational mode for seam finding algorithms.
|
Integer value (mode selector)
Different values select different seam finding strategies
|
LOOM_SEAM_FIND_DISABLEDisables seam finding in LOOM stitching operations.
|
“1”: Disable seam finding
“0” or unset: Enable seam finding
|
Chroma Key Configuration#
The chroma key configuration environment variables for MIVisionX are collected in the following table.
Environment variable |
Value |
|---|---|
CHROMAKEY_MASKControls chroma key masking behavior.
|
Integer value specifying chroma key mask settings
Used for green screen/chroma key operations
|
CHROMAKEY_MERGEControls chroma key merging operations.
|
Integer value specifying chroma key merge settings
Controls how chroma key layers are combined
|
File I/O and Auxiliary Operations#
The file I/O and auxiliary operation environment variables for MIVisionX are collected in the following table.
Environment variable |
Value |
|---|---|
LOOMIO_AUX_DUMPSpecifies file path for auxiliary LOOM I/O data dumping.
|
String path to dump file
Enables debugging of LOOM I/O operations
|
Model Deployment#
The model deployment environment variables for MIVisionX are collected in the following table.
Environment variable |
Value |
|---|---|
MIVISIONX_MODEL_COMPILER_PATHOverrides the default path to the MIVisionX model compiler.
|
String path to model compiler executable
Default: “/opt/rocm/libexec/mivisionx/model_compiler”
|
Neural Network Configuration#
The neural network configuration environment variables for MIVisionX are collected in the following table.
Environment variable |
Value |
|---|---|
NN_MIOPEN_CBR_MODEControls MIOpen Convolution-BatchNorm-ReLU fusion mode for neural networks.
|
Integer value specifying CBR mode
Default: 1 (enabled)
Controls operator fusion optimization
|