Skip to content

Commit 99335a6

Browse files
authored
[flang][OpenMP] Add missing implementation for 'omp_is_initial_device' (#83056)
Resolve issue #82047
1 parent 860b6ed commit 99335a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openmp/libomptarget/DeviceRTL/src/State.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ int omp_get_num_teams(void) { return mapping::getNumberOfBlocksInKernel(); }
426426
int omp_get_team_num() { return mapping::getBlockIdInKernel(); }
427427

428428
int omp_get_initial_device(void) { return -1; }
429+
430+
int omp_is_initial_device(void) { return 0; }
429431
}
430432

431433
extern "C" {

0 commit comments

Comments
 (0)