I have a program using MKL on Linux (Centos 7.3 1611) that runs fine without any setcap capabilities. I would like to adjust thread priorities, so I added CAP_SYS_NICE using setcap. When I run the program, it starts fine. As soon as it tries to run any MKL functions, it fails with an error saying it failed to load mkl_loader. The program runs fine as root with CAP_SYS_NICE set. I have googled around, and have not found a solution that works yet.
↧