Skip to content

Commit

Permalink
[flang][OpenMP] Add missing implementation for 'omp_is_initial_device' (
Browse files Browse the repository at this point in the history
#83056)

Resolve issue #82047
  • Loading branch information
mjklemm committed Feb 26, 2024
1 parent 860b6ed commit 99335a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openmp/libomptarget/DeviceRTL/src/State.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ int omp_get_num_teams(void) { return mapping::getNumberOfBlocksInKernel(); }
int omp_get_team_num() { return mapping::getBlockIdInKernel(); }

int omp_get_initial_device(void) { return -1; }

int omp_is_initial_device(void) { return 0; }
}

extern "C" {
Expand Down

0 comments on commit 99335a6

Please sign in to comment.