DrTimothyAldenDavis / SuiteSparse

The official SuiteSparse library: a suite of sparse matrix algorithms authored or co-authored by Tim Davis, Texas A&M University.
https://people.engr.tamu.edu/davis/suitesparse.html
Other
1.15k stars 259 forks source link

CPU timer: no timer used. #822

Closed DragonPara closed 3 months ago

DragonPara commented 4 months ago

But if I set -DCMAKE_C_FLAGS=-openmp, timer will be set to omp_get_wtime()

CPU timer: omp_get_wtime ( )

Why -DSUITESPARSE_USE_OPENMP=ON not work?

mmuetzel commented 4 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.

DrTimothyAldenDavis commented 3 months ago

Fixed with #823.