Open gfkdliucheng opened 5 months ago
What's the actual compilaton error? And what's your configuration (DEVITO_ARCH
, DEVITO_PLATFORM
, DEVITO_LANGUAGE
)
What's the actual compilaton error? And what's your configuration (
DEVITO_ARCH
,DEVITO_PLATFORM
,DEVITO_LANGUAGE
) below is the error output: /root/miniconda3/bin/../lib/gcc/aarch64-conda-linux-gnu/9.5.0/../../../../aarch64-conda-linux-gnu/bin/ld: /root/miniconda3/bin/../aarch64-conda-linux-gnu/sysroot/usr/lib/../lib/Scrt1.o: in function_start': (.text+0x18): undefined reference to
main' /root/miniconda3/bin/../lib/gcc/aarch64-conda-linux-gnu/9.5.0/../../../../aarch64-conda-linux-gnu/bin/ld: (.text+0x1c): undefined reference to `main' collect2: error: ld returned 1 exit status FAILED compiler invocation: /root/miniconda3/bin/aarch64-conda-linux-gnu-cc -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -isystem /root/miniconda3/include -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--allow-shlib-undefined -Wl,-rpath,/root/miniconda3/lib -Wl,-rpath-link,/root/miniconda3/lib -L/root/miniconda3/lib /tmp/devito-jitcache-uid0/d3ed1cb2f1d051147a527d2966d0424b0a74de1f.c -lm -o /tmp/devito-jitcache-uid0/d3ed1cb2f1d051147a527d2966d0424b0a74de1f.so PLATFORM: ubuntu 22.04 (aarch64) refer to the info "When using OpenMP offloading, it is recommended to stick to the corresponding vendor compiler, so ARCH=amdclang for AMD, ARCH={icc,icx,intel} for Intel, and ARCH=nvc for NVidia." devito maybe doesn't support linux arm arch.
It looks like you have a lot of flags set in your system (i.e Wl,-O2 -Wl,--sort-common -Wl,--as-needed
...)
The only case devito would use those if you don't set any configuration. I would recommend following:
to set the devito configuration to something that matches your system,
@gfkdliucheng any updates on that issue?
no
from devito import * import matplotlib.pyplot as plt
def solver(I, dt, T, eqs):