Skip to content
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

set SIMDD with CMake configure_file #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chillenb
Copy link

@chillenb chillenb commented Nov 25, 2024

This change is intended to prevent errors such as pyscf/pyscf#1855 from occurring.
Currently, the definition of SIMDD in cint.h depends on the flags passed to the compiler. If code that uses qcint is not compiled with the same flags as qcint itself, then it may assume a different value of SIMDD and access CINTEnvVars incorrectly.

I think it's a good idea for SIMDD be determined ahead of time using check_c_source_runs and then written to cint.h.
This should ensure that downstream code gets the right value of SIMDD no matter what compile flags are used. Let me know what you think!

@chillenb
Copy link
Author

I had made this pull request off an old commit. It's updated now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant