I've been trying to call the DFTI methods in MKL 2020 Update 2 from a .NET Core application, but I can't get it to work when running on Linux (Ubuntu 18 and Sles 12). The code I'm using works on Windows, but on Linux it fails with a "Illegal instruction" message. I've made a simple example, the code is attached, and the MKL *.so files (including the OpenMP ones) are all in the same directory as the executable. It's not a problem with loading the mkl_rt library because I'm able to call e.g. Pardiso and LAPACK methods no problem.
I've renamed by file from Program.cs to Program.c because the web interface specifically doesn't allow .cs files.