Skip to content

Commit d4d0ae6

Browse files
committed
[OpenMP] Fix link error on Windows caused by interop functions
This patch fixes the link error on Windows caused by `interop` functions. Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D118524
1 parent efd4938 commit d4d0ae6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

openmp/runtime/src/kmp_ftn_os.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,14 @@
276276
#define FTN_SET_TEAMS_THREAD_LIMIT omp_set_teams_thread_limit_
277277
#define FTN_GET_TEAMS_THREAD_LIMIT omp_get_teams_thread_limit_
278278

279+
#define FTN_GET_NUM_INTEROP_PROPERTIES omp_get_num_interop_properties_
280+
#define FTN_GET_INTEROP_INT omp_get_interop_int_
281+
#define FTN_GET_INTEROP_PTR omp_get_interop_ptr_
282+
#define FTN_GET_INTEROP_STR omp_get_interop_str_
283+
#define FTN_GET_INTEROP_NAME omp_get_interop_name_
284+
#define FTN_GET_INTEROP_TYPE_DESC omp_get_interop_type_desc_
285+
#define FTN_GET_INTEROP_RC_DESC omp_get_interop_rc_desc_
286+
279287
#endif /* KMP_FTN_APPEND */
280288

281289
/* ------------------------------------------------------------------------ */
@@ -402,6 +410,14 @@
402410
#define FTN_SET_TEAMS_THREAD_LIMIT OMP_SET_TEAMS_THREAD_LIMIT
403411
#define FTN_GET_TEAMS_THREAD_LIMIT OMP_GET_TEAMS_THREAD_LIMIT
404412

413+
#define FTN_GET_NUM_INTEROP_PROPERTIES OMP_GET_NUM_INTEROP_PROPERTIES
414+
#define FTN_GET_INTEROP_INT OMP_GET_INTEROP_INT
415+
#define FTN_GET_INTEROP_PTR OMP_GET_INTEROP_PTR
416+
#define FTN_GET_INTEROP_STR OMP_GET_INTEROP_STR
417+
#define FTN_GET_INTEROP_NAME OMP_GET_INTEROP_NAME
418+
#define FTN_GET_INTEROP_TYPE_DESC OMP_GET_INTEROP_TYPE_DESC
419+
#define FTN_GET_INTEROP_RC_DESC OMP_GET_INTEROP_RC_DESC
420+
405421
#endif /* KMP_FTN_UPPER */
406422

407423
/* ------------------------------------------------------------------------ */
@@ -530,6 +546,14 @@
530546
#define FTN_SET_TEAMS_THREAD_LIMIT OMP_SET_TEAMS_THREAD_LIMIT_
531547
#define FTN_GET_TEAMS_THREAD_LIMIT OMP_GET_TEAMS_THREAD_LIMIT_
532548

549+
#define FTN_GET_NUM_INTEROP_PROPERTIES OMP_GET_NUM_INTEROP_PROPERTIES_
550+
#define FTN_GET_INTEROP_INT OMP_GET_INTEROP_INT_
551+
#define FTN_GET_INTEROP_PTR OMP_GET_INTEROP_PTR_
552+
#define FTN_GET_INTEROP_STR OMP_GET_INTEROP_STR_
553+
#define FTN_GET_INTEROP_NAME OMP_GET_INTEROP_NAME_
554+
#define FTN_GET_INTEROP_TYPE_DESC OMP_GET_INTEROP_TYPE_DESC_
555+
#define FTN_GET_INTEROP_RC_DESC OMP_GET_INTEROP_RC_DESC_
556+
533557
#endif /* KMP_FTN_UAPPEND */
534558

535559
/* -------------------------- GOMP API NAMES ------------------------ */

0 commit comments

Comments
 (0)