moskewcz / boda

Boda: A C++ Framework for Efficient Experiments in Computer Vision
Other
63 stars 12 forks source link

Structure of a wisdom file #19

Open dinhv opened 7 years ago

dinhv commented 7 years ago

The ops-prof mode requires a wisdom file and also produces a wisdom file e.g. the wisdom file located in /boda/test/good_tr/sgemm-gen5

(str_vals=(type=sgemm),nda_vals=(a=(dims=(K=2048,M=2048)),b=(dims=(K=2048,N=2048)),c=(dims=(M=2048,N=2048))))
kg
c

0105000000666C6F61740101DADA0000000000000000020000000008000000080000010000004D0008000001000000010000004E05000000666C6F61740000400000000000018DFC7924BA111898493CEEC41E948E463C000000FC7A094C2AB9884BA959044C4B0FDA4A3C67DA4A323AA34A9DEF964AD967514A7C9E3D4A38824F4A6F602F4A66C81A4AB8E51F4A41A7E7493C15F649221A044A2E68044A4A06FE49B145F9496113F049FEAF9949F9D7B34962ABC249A0AA8B4926668E495F8D9849C2849749C8F04846BC2C8EC384525FC54C377146186C064720434547E3D2CB46429383461957F0C43E79D2C4CF78EFC3227BEF43D4C952C30397FB4316AEBBC266358343B7788EC3AE4014427CAFEF410E14D7C36AE843C363438EC3317E47C405384DC38672A043BD0A404263419FC326BB55C3EB8FB7C3C4CD1644C14EB3C218915443941379C3
/op_wisdom_t

Can you explain the structure of this wisdom file? Especially, what do kg, c and the line after c mean?

moskewcz commented 7 years ago

reading the recursive decent parser implemented in read_next_wisdom() is your best bet to understanding the wisdom format. in short, the wisdom file is a list of wisdoms, read line-by-line. each wisdom contains:

i'm not sure about a blank line after the 'c' and before the nda_digest in your quote above. i don't see that in the repo version of the file ../tree/master/test/good_tr/sgemm-gen5/wisdom.wis