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

compiler="gcc" flag does not respect $CC variable, test fails on mac #159

Open
raminammour opened this issue Sep 12, 2023 · 2 comments
Open

Comments

@raminammour
Copy link

Hey,

I managed to install and make the tests pass on mac except for the tests that reference compiler="gcc".

For devito to work I had to define env variables export CC=gcc-13 for example. gcc on mac points to clang by default and the support for openmp there seemed painful. This line fails unless I delete the compiler="gcc"flag. Weirdly enough, if I run the same test inside the REPL, instead of pkg mode, it passes!

So not sure what the way forward here is, but I thought it would be useful to let you know.

@deckerla
Copy link
Member

Interesting! thank you for reporting @raminammour. This is useful to know and we will try to look into it. At a minimum, we may be able to remove that compiler="gcc" flag from the test (although that is avoiding the bug in the unit test rather than fixing it).

Do you know if this issue is also observed in the devito python package?

@raminammour
Copy link
Author

Hey Luke,

not sure about Devito, but the fact that the test succeeds if pasted to the repl makes me suspect the test system spawning a process that is not inheriting the correct environment. So it may be an artifact of the testing.

Hope your this helps!

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

No branches or pull requests

2 participants