{"action":"closed","issue":{"url":"https://api.github.com/repos/pydata/numexpr/issues/148","labels_url":"https://api.github.com/repos/pydata/numexpr/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/pydata/numexpr/issues/148/comments","events_url":"https://api.github.com/repos/pydata/numexpr/issues/148/events","html_url":"https://github.com/pydata/numexpr/issues/148","id":34020903,"number":148,"title":"MKL issues","user":{"login":"davidedelvento","id":579771,"avatar_url":"https://avatars.githubusercontent.com/u/579771?v=3","gravatar_id":"","url":"https://api.github.com/users/davidedelvento","html_url":"https://github.com/davidedelvento","followers_url":"https://api.github.com/users/davidedelvento/followers","following_url":"https://api.github.com/users/davidedelvento/following{/other_user}","gists_url":"https://api.github.com/users/davidedelvento/gists{/gist_id}","starred_url":"https://api.github.com/users/davidedelvento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidedelvento/subscriptions","organizations_url":"https://api.github.com/users/davidedelvento/orgs","repos_url":"https://api.github.com/users/davidedelvento/repos","events_url":"https://api.github.com/users/davidedelvento/events{/privacy}","received_events_url":"https://api.github.com/users/davidedelvento/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-05-21T20:28:06Z","updated_at":"2015-04-14T12:26:21Z","closed_at":"2015-04-14T12:26:21Z","body":"I am using Intel compiler version 14.0.2 with mkl v11.1.2 on intel64 architecture.\r\n\r\nThere are a few issues with the default mkl_libs in site.cfg.example\r\n\r\n* First, `mkl_blas95_lp64` and `mkl_lapack95_lp64` are only static (`.a`) and I must compile shared object (I believe this is true for everybody). So I took them out.\r\n\r\n* Second, `libmkl_core.so` is not complete as the `libmkl_core.a` and therefore there will be some undefined symbols. Those are in `libmkl_def.so` instead. So I added the `mkl_def`.\r\n\r\n* Third, compiling this way succeeds, but fails at runtime with:\r\n`ImportError: /opt/intel/mkl/lib/intel64/libmkl_avx.so: undefined symbol: ownLastTriangle_64f`\r\n(which, for the record, is very close to this https://software.intel.com/en-us/forums/topic/473447 related problem)\r\n`nm /opt/intel/*/lib/intel64/*.so | grep \" ownLastTriangle_64\" # notice the space before \"own\"`\r\ndoes find many `U` (usage) of `ownLastTriangle_64`s but no `T` (text definition). Dropping the space in the above grep, does find some `T` but all prefixed and not resolved automatically, short of symbol mangling. \r\nTherefore, I took mkl_avx out too.\r\n\r\nIn conclusion, this is my working libs line in site.cfg:\r\n`mkl_libs = mkl_intel_lp64, mkl_gf_lp64, mkl_intel_thread, mkl_core, mkl_def, mkl_vml_avx, mkl_rt, iomp5`\r\n\r\nPS: writing this as issue instead of pull request since I suspect different installs of the compiler and the mkl may need different things -- and obviously the problem is solved for me, so you can close it right away (possibly including a comment in the site.cfg.example)"}}