ROCm / HIP-CPU

An implementation of HIP that works on CPUs, across OSes.
MIT License
107 stars 19 forks source link

Help on understand processor() initialization and threadIdx iteration #34

Open jchen706 opened 2 years ago

jchen706 commented 2 years ago

I am having difficulty understanding how the processor_ function interacts with the cothread and how threadIdx dimensions are used. Is there a thread pool created? Where is the processor function called? How is thread initialized at the start in the processor_()?

I see how the blocks are iterated in the Tile.hpp but how are threadIdx iterated?