Specific thread order in C using GCC and OMP
问题 I need to make 4 teams with 4 threads each one with contiguous processors. The result I'm expecting is, for example: Team 0 Thread 0 Processor: 0 Team 0 Thread 1 Processor: 1 Team 0 Thread 2 Processor: 2 Team 0 Thread 3 Processor: 3 Team 1 Thread 0 Processor: 4 Team 1 Thread 1 Processor: 5 Team 1 Thread 2 Processor: 6 Team 1 Thread 3 Processor: 7 Team 2 Thread 0 Processor: 8 Team 2 Thread 1 Processor: 9 Team 2 Thread 2 Processor: 10 Team 2 Thread 3 Processor: 11 Team 3 Thread 0 Processor: 12