OpenMP

jaeung·2023년 1월 11일
0

HPC Lab Lectures

목록 보기
2/2

■ OpenMP(Open Multi Processing)
○ 공유 메모리 시스템을 타겟으로한 멀티쓰레드 프로그래밍
○ (목표) Standard and Portability

■ Pthreads (POSIX threads) vs OpenMP
○ Function library vs Directive-based
○ Low-level API vs High-level API
○ Flexible vs Easy to implement
○ Complex to implement vs Limited controllable factors

■ OpenMP Programming Model
○ Thread-based
○ Fork-join model

■ OpenMP Language Features
○ Parallel connstruction
○ Sharing work among threads
○ Declare scope of variavles
○ Synchronization

■ Compiler Setup
○ Visual studio 20XX

○ 디렉토리기반의 API

○ #Pragma

  • C/C++ 확장 기능

    #pragma omp directive [cluse list]
    / structured block/

출처 : HPC Lab. KOREATECH (https://www.youtube.com/watch?v=y_b8ZzfFNLM&list=PLBrGAFAIyf5o6jgXIpxkRsDMNHdYeHoJ6&index=4)

profile
Done is better than perfect.

0개의 댓글