-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPU timer: no timer used. #822
Comments
DragonPara
changed the title
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 ..
CPU timer: no timer used.
Jun 3, 2024
mmuetzel
added a commit
to mmuetzel/SuiteSparse
that referenced
this issue
Jun 3, 2024
UMFPACK is built without OpenMP. (It doesn't use it directly.) Hence, `_OPENMP` is not defined when building its sources. Get the information about the used timer function directly from SuiteSparse_config.h instead. Fixes DrTimothyAldenDavis#822.
mmuetzel
added a commit
to mmuetzel/SuiteSparse
that referenced
this issue
Jun 3, 2024
UMFPACK is built without OpenMP. (It doesn't use it directly.) Hence, `_OPENMP` is not defined when the UMFPACK libraries are built. Get the information about the used timer function directly from SuiteSparse_config.h instead. Fixes DrTimothyAldenDavis#822.
Thank you for reporting the issue. Afaict, the OpenMP timer function is correctly used when SuiteSparse is configured with PR #823 should be fixing that. |
mmuetzel
added a commit
to mmuetzel/SuiteSparse
that referenced
this issue
Jun 5, 2024
UMFPACK is built without OpenMP. (It doesn't use it directly.) Hence, `_OPENMP` is not defined when the UMFPACK libraries are built. Get the information about the used timer function directly from SuiteSparse_config.h instead. Fixes DrTimothyAldenDavis#822.
Fixed with #823. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?The text was updated successfully, but these errors were encountered: