cloudcores / CuAssembler

An unofficial cuda assembler, for all generations of SASS, hopefully :)
MIT License
361 stars 66 forks source link

how to understand "L2Bank" #20

Open Shaquille-Wu opened 9 months ago

Shaquille-Wu commented 9 months ago

Hi, big god. I found the "L2Bank" in your microbenchmark. I don't know the principle and theory of your code. would you like to teach me?

I found some reference document about "L2Bank" from internet, but, the "L2Bank" is about Ampere. and, I noticed that the ARCH is sm_50 and sm_75 in your makefile So, I'm very confused, what is this "L2Bank"?

I run your microbenchmark on my SM_86, I cannot figure out what it want to demostrate, So, how to understand it ?

cloudcores commented 9 months ago

L2 Bank may be not the right termilogy here. Sometimes it may be called slice/partition or something like. It's does not related to assembly directly. just the mapping function from virtual address to physical address, You may confer https://github.com/sakjain92/Fractional-GPUs for some L2 mapping reverse engeneering samples.