OpenMP - Scheduling(static, dynamic, guided, runtime, auto) - Yiling's Tech Zone | 风逝无殇的瞎逼逼基地
610yilingliu.github.io · 1,709 words · saved by 1 readers
Tech blogger, postgraduate student in the University of Western Australia. Tech stack: Machine Learning/Python/C#/Web backend/JS/JAVA/R
What is Scheduling in OpenMP Scheduling is a method in OpenMP to distribute iterations to different threads in for loop. The basic form of OpenMP scheduling is #pragma omp parallel for schedule(scheduling-type) for ( conditions ){ do something } Of course you can use #pragma omp parallel for directly without scheduling, it is equal to #pragma omp parallel for schedule(static,1) [1] If you run int main () { #pragma omp parallel for schedule(static,1) for ( int i = 0 ; i < 20 ; i ++ ) { printf ( "Thread %d is running number %d \n " , omp_get_thread_num (), i ); } return 0 ; } and int main () { #
saved by
related reading
- OpenMP: For & Schedulingjakascorner.com
- Understanding and expressing scalable concurrencyaturon.github.io
- Multi Core Programming and Threadsimomath.com
- How to Optimize a CUDA Matmul Kernel for cuBLAS-like Performance: a Worklogsiboehm.com
- Amdahl's law - Wikipediaen.wikipedia.org
- Using Threads to Run Code Simultaneously - The Rust Programming Languagedoc.rust-lang.org
- Awesome-ML-SYS-Tutorial/sglang/scheduler/readme-en.md at main · zhaochenyang20/Awesome-ML-SYS-Tutorial · GitHubgithub.com
- Multithreading and Multiprocessing in 10 Minutes | Towards Data Sciencetowardsdatascience.com
- Implementing a GPU's Programming Model on a CPUlitherum.blogspot.com
- ⭐️ Fast LLM Inference From Scratchandrewkchan.dev
- Execution Model - SLING user documentationdoc.sling.si
- Multithreading (computer architecture) - Wikipediaen.wikipedia.org