Complete the following steps to run performance benchmarking on Windows:
Enable BUILD_CLIENTS_BENCHMARKS during AOCL-Sparse installation process (refer to Building from Source on Linux).
Define the environment variable
AOCL_ROOTto point to AOCL libs installation that has AOCL-BLAS, AOCL-LAPACK and AOCL-Utils libraries:$ set AOCL_ROOT="C:\Program Files\AMD\AOCL-Windows"
Define
SPARSE_ROOTto the AOCL-Sparse package installation path:$ set SPARSE_ROOT="%HOME%\amd\aocl-sparse"
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%"
Navigate to the folder containing the AOCL-Sparse executable:
$ cd out_sparse\tests\staging\
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