17.3.3. Performance Benchmarking on Windows - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English

Complete the following steps to run performance benchmarking on Windows:

  1. Enable BUILD_CLIENTS_BENCHMARKS during AOCL-Sparse installation process (refer to Building from Source on Linux).

  2. Define the environment variable AOCL_ROOT to point to AOCL libs installation that has AOCL-BLAS, AOCL-LAPACK and AOCL-Utils libraries:

    $ set AOCL_ROOT="C:\Program Files\AMD\AOCL-Windows"
    
  3. Define SPARSE_ROOT to the AOCL-Sparse package installation path:

    $ set SPARSE_ROOT="%HOME%\amd\aocl-sparse"
    
  4. Add AOCL-Sparse, AOCL-BLAS, AOCL-LAPACK and AOCL-Utils library paths to the environment path variable:

    $ set PATH="%SPARSE_ROOT%\lib;%PATH%"
    $ set PATH="%AOCL_ROOT%\amd-blis\lib\ILP64;%PATH%"
    $ set PATH="%AOCL_ROOT%\amd-libflame\lib\ILP64;%PATH%"
    $ set PATH="%AOCL_ROOT%\amd-utils\lib;%PATH%"
    
  5. Navigate to the folder containing the AOCL-Sparse executable:

    $ cd out_sparse\tests\staging\
    
  6. Run the benchmark:

    **Random Data:**
    
    $ .\aoclsparse-bench.exe --function=optmv --precision=d --sizem=1000
    --sizen=1000 --sizennz=4000 -verify=1
    
    **MTX Input:**
    
    $ .\aoclsparse-bench.exe --function=optmv --precision=d --mtx=LFAT5.mtx
    --verify=1