using openMP takes much more time to create convOp
I am using mkldnn V0.21. When I use the openmp, I find it takes more times to create convOp than I create OP in signal thread. I want to know if there is any way to reduce the time and why it takes so much time.
Hi, @EstherBlanchett, since you have not provided the use case (problem sizes, attributes) it's hard to say for sure why it happens, but my guess is as follows. Some of the oneDNN primitives use JIT compilation approach meaning that the binary code of the kernel is generated during the primitive creation. The generation step mostly utilizes memory bandwidth and hence is memory bound therefore creation of the oneDNN primitives in parallel may not scale.
I'm wondering is there a particular reason of using v0.21, which is pretty old? You may want to try the latest oneDNN version which is currently 1.7, please find a transition guide which may help moving from 0.x to 1.x version.