MIVisionX environment variables#
The following environment variables control the runtime behavior of MIVisionX.
Core OpenVX configuration#
Environment variable |
Values |
|---|---|
AGO_DEFAULT_TARGETSets the default execution target for OpenVX kernels.
|
"GPU": execute kernels on the GPU"CPU": execute kernels on the CPUUnset: use the library default
|
AGO_BUFFER_MERGE_FLAGSControls buffer-merging optimization.
|
Integer bitmask
0: disable buffer mergingHigher values enable more aggressive merging
|
AGO_THREAD_CONFIGConfigures the number of CPU threads used for graph execution.
|
0: use the default thread countPositive integer: use that many threads
|
VX_GRAPH_ATTRIBUTE_AMD_OPTIMIZER_FLAGSSets graph optimizer flags for AMD extensions.
|
Integer bitmask
0: disable optimizationsPositive values enable specific optimizations
|
GPU and device configuration#
Environment variable |
Values |
|---|---|
GPU_ENABLE_WGP_MODEControls Workgroup Processor (WGP) mode on RDNA GPUs that support both CU and WGP modes (GPU major version ≥ 10).
|
0: use CU mode1 (or any non-zero): use WGP mode (default) |
OpenCL configuration#
Environment variable |
Values |
|---|---|
AGO_OPENCL_PLATFORMOverrides the default OpenCL platform selection.
|
String — name of the OpenCL platform to use
|
AGO_OPENCL_VERSION_CHECKControls OpenCL version checking.
|
String — set to disable or relax version validation
|
AGO_OPENCL_BUILD_OPTIONSAppends options to the OpenCL kernel compiler invocation.
|
String — valid OpenCL compiler flags
|
AGO_OPENCL_DEVICE_INFOControls OpenCL device information reporting (useful for debugging).
|
String — controls the verbosity of device info output
|
Debugging and profiling#
Environment variable |
Values |
|---|---|
AGO_DUMP_GPUDumps compiled GPU kernel source to disk for inspection.
|
Set to any non-empty string to enable
|