Unified Validator - Verbose Mode
The unified validator supports a verbose mode for detailed output during testing:
$ cmake -DUNIFIED_VALIDATOR_VERBOSE=ON .
$ make
To disable verbose output: cmake -DUNIFIED_VALIDATOR_VERBOSE=OFF .
Legacy Validator - Debug Mode
The legacy C validator supports a debug mode:
$ cmake -DLIBMEM_VALIDATOR_DEBUG=ON .
$ make
To disable debug output: cmake -DLIBMEM_VALIDATOR_DEBUG=OFF .
When enabled, both modes output the following information:
VEC_SZ: Vector size in bytes (32 for AVX2, 64 for AVX512)
Function name: The function being tested
Test size: The size parameter being validated
Alignment mode: Whether testing single alignment or all alignment combinations
Individual alignment tests: Each source/destination alignment combination (when using alignment check mode)
Example Output:
[DEBUG] libmem_validator started
[DEBUG] VEC_SZ = 64 bytes
[DEBUG] Function: memcpy
[DEBUG] Size: 1024
[DEBUG] Alignment check mode: All alignments
[DEBUG] Testing alignment - src: 0, dst: 0
[DEBUG] Testing alignment - src: 0, dst: 1
[DEBUG] Testing alignment - src: 0, dst: 2
...
[DEBUG] Testing alignment - src: 63, dst: 63
Note
These modes are used only for debugging validator code.