MKL and MKLDNN here refer to different libs. The first is used as a BLAS lib, and the second is MKLDNN. So setting NO_MKLDNN doesn’t do anything. Can you just follow the instruction and install the headers please?