diff options
| author | Alex Duran <alejandro.duran@intel.com> | 2025-10-17 11:07:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-17 11:07:31 +0200 |
| commit | 9ba54ca3eea3a050d96cc88a76e73577d190aae6 (patch) | |
| tree | b2e732562c09c8b1e83f21925802df6a42ddc42e /offload/libomptarget/OpenMP/InteropAPI.cpp | |
| parent | f5885de2cd49785d666b909612e4ec18925abc5a (diff) | |
[OFFLOAD] Interop fixes for Windows (#162652)
On Windows, for a reason I don't fully understand boolean bits get extra
padding (even when asking for packed structures) in the structures that
messes the offsets between the compiler and the runtime.
Also, "weak" works differently on Windows than Linux (i.e., the "local"
routine has preference) which causes it to crash as we don't really have
an alternate implementation of __kmpc_omp_wait_deps. Given this, it
doesn't make sense to mark it as "weak" for Linux either.
Diffstat (limited to 'offload/libomptarget/OpenMP/InteropAPI.cpp')
| -rw-r--r-- | offload/libomptarget/OpenMP/InteropAPI.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/offload/libomptarget/OpenMP/InteropAPI.cpp b/offload/libomptarget/OpenMP/InteropAPI.cpp index c55ef2c2e672..d6ef17c06355 100644 --- a/offload/libomptarget/OpenMP/InteropAPI.cpp +++ b/offload/libomptarget/OpenMP/InteropAPI.cpp @@ -22,8 +22,7 @@ extern "C" { void __kmpc_omp_wait_deps(ident_t *loc_ref, int32_t gtid, int32_t ndeps, kmp_depend_info_t *dep_list, int32_t ndeps_noalias, - kmp_depend_info_t *noalias_dep_list) - __attribute__((weak)); + kmp_depend_info_t *noalias_dep_list); } // extern "C" |
