As I claimed here it seems that Yield flags has elusive pattern, but on other hand they inserted strictly deterministically - you can recompile the same cubin and check that Yields always take place for the same instructions
So I added to my dg2.pl option -Y to produce CSV files with 9 params like instruction name, yield flag, stall count, read/write/wait barriers and so on. If you are AI addicted - before further reading you can play with couple of samples to check if your favorite AI for mega$$/month can extract simple pattern
I just done some data analysis with R
First thing is just to check PCA - most strong correlation was between Yield & stall counts ~70%. Well, not enough for reliable conclusion, but also too significant to be ignored
Then since instructions are, in essence, categorical entities, I done FAMD/MCA - nothing useful was found
At this point I had 2 hypotheses:
- Yields inserted before/after some instruction(s) in block to switch scheduler to another group in warp, for example before barriers sync. Well, statistics showed that max distance between couple of instructions with yields can be 854 instructions and this make almost impossible to apply RNN/GRU for so long sequences
- Yields somehow depends from stall counts per instruction type - not necessary for exact stall count, maybe for some instruction specific threshold or rolling sum
So I made simple 2-clustering for each instruction. Result was amazing - they all were easy separable
Then I wrote simple perl script to extract thresholds for each instruction and measure accuracy - 100%
P2R: 2 - 10 (68 yelds 111 items)
PLOP3: 2 - 13 (125 yelds 259 items)
PRMT: 2 - 11 (651 yelds 1368 items)
R2UR: 2 - 15 (602 yelds 2182 items)
SEL: 2 - 10 (513 yelds 1250 items)
here first number is max stall count for instruction without Yield, second - min stall for instruction with Yield
Комментариев нет:
Отправить комментарий