You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK, this is crazy, but what is actually being checked is not the feature bits themselves, but the pointer to the feature bits. I have no idea how this ever "worked".
Luckily, the checking the pointer thing only applied to the debugging output which, while very confusing, is not the core issue. I did find something else. After configure with ./configure auto, both configure and BLIS_ARCH_DEBUG show the active config as haswell. When I then edit the files kernels/zen/1/bli_amaxv_zen_int.c and ref_kernels/1/bli_amaxv_ref.c to print here zen and here ref, respectively, I get this confusing output:
libblis: selecting sub-configuration 'haswell'.
here ref
from a simple program that just calls idamax. Confusingly, same happens after ./configure haswell. I'm not actually sure how I got it to use the vectorized kernel to test #382.
After configure with ./configure auto, both configure and BLIS_ARCH_DEBUG show the active config as haswell. When I then edit the files kernels/zen/1/bli_amaxv_zen_int.c and ref_kernels/1/bli_amaxv_ref.c to print here zen and here ref, respectively, I get this confusing output:
@devinamatthews This is normal. The haswell subconfig uses part of the zen kernel set. AMD contributed several non-level3 kernels in the zen kernel set, but we use them for both haswell and zen subconfigs (and others).
Yes, but isn't haswell supposed to use the zen level 1 kernels, hence #380? Here it uses the reference kernel even though it says it haswell is selected.
Yes, but isn't haswell supposed to use the zen level 1 kernels, hence #380? Here it uses the reference kernel even though it says it haswell is selected.
Yes, but did you not see that I disabled use of the intrinsics zen kernel amaxv in e186d71? The kernel is still there, but I un-registered it.
Activity
jeffhammond commentedon Mar 23, 2020
devinamatthews commentedon Mar 23, 2020
In theory it is straightforward:
so I don't know that the problem is.
jeffhammond commentedon Mar 23, 2020
Sorry, I meant "what result is obtained from detection, if not Haswell?"
devinamatthews commentedon Mar 24, 2020
I turned on all the printing in bli_cpuid.c and this looks like it might be the problem:
I'll have to dig in to the cpuid leaves.
devinamatthews commentedon Mar 24, 2020
Something very odd is up. This code:
Produces this output:
devinamatthews commentedon Mar 24, 2020
OK, this is crazy, but what is actually being checked is not the feature bits themselves, but the pointer to the feature bits. I have no idea how this ever "worked".
devinamatthews commentedon Mar 24, 2020
Luckily, the checking the pointer thing only applied to the debugging output which, while very confusing, is not the core issue. I did find something else. After configure with
./configure auto, both configure and BLIS_ARCH_DEBUG show the active config ashaswell. When I then edit the fileskernels/zen/1/bli_amaxv_zen_int.candref_kernels/1/bli_amaxv_ref.cto printhere zenandhere ref, respectively, I get this confusing output:from a simple program that just calls
idamax. Confusingly, same happens after./configure haswell. I'm not actually sure how I got it to use the vectorized kernel to test #382.fgvanzee commentedon Mar 24, 2020
@devinamatthews This is normal. The
haswellsubconfig uses part of thezenkernel set. AMD contributed several non-level3 kernels in thezenkernel set, but we use them for bothhaswellandzensubconfigs (and others).devinamatthews commentedon Mar 24, 2020
Yes, but isn't haswell supposed to use the zen level 1 kernels, hence #380? Here it uses the reference kernel even though it says it haswell is selected.
fgvanzee commentedon Mar 24, 2020
Yes, but did you not see that I disabled use of the intrinsics
zenkernelamaxvin e186d71? The kernel is still there, but I un-registered it.devinamatthews commentedon Mar 24, 2020
Ugh. Can you reenable it when you merge #382?
devinamatthews commentedon Mar 24, 2020
Well, given that then this is a false alarm.