oneDNN icon indicating copy to clipboard operation
oneDNN copied to clipboard

What is the criteria for dividing input channels?

Open haidj opened this issue 9 years ago • 3 comments

Dear MKLDNN contributor,

I am having an inquiry while looking at the mkldnn 1x1 convolution code on avx512(KNL).

In the linked code below, what is the criteria for dividing input channels(I intend to reduce_divider values)? Is it a criterion to increase reuse of input block considering L2 size of KNL? https://github.com/01org/mkl-dnn/blob/master/src/cpu/jit_avx512_common_1x1_conv_kernel.cpp#L747

I am always thankful for your help. Thank you,

Daejin.

haidj avatar Aug 10 '17 02:08 haidj

Yes, this is blocking for cache.

rsdubtso avatar Aug 10 '17 05:08 rsdubtso

As L2 cache or kernel/output size change, I would like to find the optimal reduce_divider values. Are there reference documents or formulas?

haidj avatar Aug 10 '17 06:08 haidj

I don't think there's a simple answer to this question or you would have seen the formula in the code. As it does not look like anyone from the team was able to provide useful information I'll close this item.

vpirogov avatar Sep 22 '17 20:09 vpirogov