llnl / llnl/blt

Support #pragma omp target

Open
#250 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
296
Forks
66
Avg merge
1h 3m
Merged PRs (30d)
1

Description

#pragma omp target tells the compiler where to run sections of openmp code. This is handled by the clang++-gpu wrapper (for one example) by adding the following to the command line:

-fopenmp -fopenmp-targets=nvptx64-nvidia-cuda

Can this be handled neatly by BLT?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the clang++-gpu wrapper example and BLT's handling of compiler command-line options. Trace how flags are assembled for OpenMP builds, then determine how the target options should be represented. Done means BLT can build code using #pragma omp target with the required flags and the behavior is covered by an appropriate build or test check.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system, hpc
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.