Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduction to OpenMP offload #19

Open
lucaparisi91 opened this issue Aug 15, 2024 · 0 comments
Open

Introduction to OpenMP offload #19

lucaparisi91 opened this issue Aug 15, 2024 · 0 comments
Assignees
Labels

Comments

@lucaparisi91
Copy link
Collaborator

lucaparisi91 commented Aug 15, 2024

Base material at OpenMPTargetOffload.ppt and IHPCSS___Introduction_to_OpenMP___GPUs.pdf

  • OpenMP programming model ( generic model [ fork-join model ] vs CUDA model where threads are always active ) . See Advanced Topics #20 .
  • shared , firstprivate, lastprivate clause
  • #pragma omp target : run on the gpu
  • #pragma omp teams : spread across blocks , num_teams clause , num_threads clause
  • # pragma omp parallel for
  • device clause : selection for the device
  • #pragma omp declare: run an external function
  • collapse : for nested parallelism
@mbareford mbareford self-assigned this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants