Illegal Instruction
errorsSome HPC systems like Princeton’s della
cluster can have sufficiently different architectures between the login node and the compute node that you get Illegal Instruction
errors. This happens if the -march=native
flag is enabled during compilation and can be fixed by simply removing that flag.
distutils
to use IntelSomething like this
LDSHARED="icc -shared" CC=icc $(PYTHON) setup.py build_ext --inplace
seems to be necessary to force Python’s distutils to use an Intel compiler instead of gcc.
Sigurd has made: http://folk.uio.no/sigurdkn/amop
One can do e.g.:
amop libsharp.a
to list the instructions used.
ldd file.so