Closed kerim371 closed 2 years ago
It looks like you have some custom compiler setup that devito doesn't like (CC, CFLAGS, DEVITO_ARCH,....) can you check your environment for oddities?
@mloubout yes that is right.
I have GCC-9.4.0 compiler that comes by default with Ubuntu 20.04
And also I have GCC-11.3.1 compiled from source and located in /home/kerim/gcc/11/bin/gcc
.
Then to work with my C++ project and GCC-11 I have set some env vars to .bashrc
:
# run CMake with gcc-11 by default
export CC=/home/kerim/gcc/11/bin/gcc
export CXX=/home/kerim/gcc/11/bin/g++
# add GCC11 and GCC12 GLIBCXX_... to be able to compile and link with those compilers
export LD_LIBRARY_PATH=/home/kerim/gcc/11/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/kerim/gcc/12/lib64:$LD_LIBRARY_PATH
Earlier I used to work with JUDI when GCC-9.3 (or 9.4) was active compiler and there were no CC
or CXX
env vars and it used to run smoothly.
I believe in such situation I have an option either to work with the default GCC-9.4 or to struggle with this issue. Just to take a chance, what may be my first step to make Devito work with GCC-11?
Devito works with gcc-11 but you need to use DEVITO_ARCH=custom
if you wanna use those CC/CXX.
You can also make a symlink to your gcc-11 in your path and set DEVITO_ARCH=gcc-11
. If that one not working may need a tiny patch in devito feel free to open an issue there
You can also make a symlink to your gcc-11 in your path and set
DEVITO_ARCH=gcc-11
. If that one not working may need a tiny patch in devito feel free to open an issue there
Adding gcc-11
symlink to bin dir (that is my path) and setting DEVITO_ARCH=gcc-11
worked, thank you!
P.S. I deleted two my posts as they were unrelated to JUDI and arised because of my carelessness
Hi,
When simply trying to run
modeling_basic_2D
example an error is arised:I believe this happen on the line dobs = PrFadjoint(Ps)*q
JUDI 3.1.4 PyCall 1.93.1 Ubuntu 20.04