[Openmp-commits] [openmp] [OpenMP] Fix undefined symbol for Darwin builds (PR #170999)
Robert Imschweiler via Openmp-commits
openmp-commits at lists.llvm.org
Sat Dec 6 14:35:00 PST 2025
https://github.com/ro-i created https://github.com/llvm/llvm-project/pull/170999
cf. https://github.com/llvm/llvm-project/pull/168554#issuecomment-3617253169
>From 7feba277c3ca0a90ab07cd48314c07c8c194b805 Mon Sep 17 00:00:00 2001
From: Robert Imschweiler <robert.imschweiler at amd.com>
Date: Sat, 6 Dec 2025 16:26:46 -0600
Subject: [PATCH] [OpenMP] Fix undefined symbol for Darwin builds
---
openmp/runtime/src/kmp_ftn_entry.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/openmp/runtime/src/kmp_ftn_entry.h b/openmp/runtime/src/kmp_ftn_entry.h
index 625101b067daf..6adf60e7ad210 100644
--- a/openmp/runtime/src/kmp_ftn_entry.h
+++ b/openmp/runtime/src/kmp_ftn_entry.h
@@ -1569,7 +1569,7 @@ int FTN_STDCALL KMP_EXPAND_NAME(FTN_GET_DEVICE_FROM_UID)(const char *device_uid)
int FTN_STDCALL
KMP_EXPAND_NAME(FTN_GET_DEVICE_FROM_UID)(const char *device_uid) {
#if KMP_OS_DARWIN || KMP_OS_WASI || defined(KMP_STUB)
- return omp_invalid_device;
+ return -2; // omp_invalid_device, see definition in omp.h
#else
int (*fptr)(const char *);
if ((*(void **)(&fptr) = KMP_DLSYM_NEXT("omp_get_device_from_uid")))
More information about the Openmp-commits
mailing list