Closed DragonPara closed 3 months ago
Thank you for reporting the issue.
Afaict, the OpenMP timer function is correctly used when SuiteSparse is configured with -DSUITESPARSE_USE_OPENMP=ON
. Only the output in the report by UMFPACK is wrong.
PR #823 should be fixing that.
Fixed with #823.
cmake command
cmake -G"Ninja Multi-Config" -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl -DCMAKE_Fortran_COMPILER=ifort -DSUITESPARSE_USE_OPENMP=ON -DSUITESPARSE_ENABLE_PROJECTS="umfpack" -DCMAKE_INSTALL_PREFIX=F:\umfpackWork\suitesparse7.7 --fresh ..
compile command cmake --build . --config Release
test code
output
But if I set
-DCMAKE_C_FLAGS=-openmp
, timer will be set to omp_get_wtime()Why
-DSUITESPARSE_USE_OPENMP=ON
not work?