You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My application runs fine with XCode and a self linked version of libomp.dylib (openmp) 17.0.6.
However, as soon as I enable the Sandbox on my macOS application the application throws (most likely because shared memory is unavailable).
Here is the exact error:
OMP: Error #179: Function Can't open TEMP failed:
OMP: System error #1: Operation not permitted
Assertion failure at kmp_runtime.cpp(6891): temp_reg_status_file_name.
OMP: Error #13: Assertion failure at kmp_runtime.cpp(6891).
My application runs fine with XCode and a self linked version of libomp.dylib (openmp) 17.0.6.
However, as soon as I enable the Sandbox on my macOS application the application throws (most likely because shared memory is unavailable).
Here is the exact error:
OMP: Error #<!-- -->179: Function Can't open TEMP failed:
OMP: System error #<!-- -->1: Operation not permitted
Assertion failure at kmp_runtime.cpp(6891): temp_reg_status_file_name.
OMP: Error #<!-- -->13: Assertion failure at kmp_runtime.cpp(6891).
shiltian
changed the title
Cannot ship openmp (libomp.dylib) on a sandboxed macOS app
[OpenMP] Cannot ship libomp.dylib on a sandboxed macOS app
Jan 31, 2024
My application runs fine with XCode and a self linked version of libomp.dylib (openmp) 17.0.6.
However, as soon as I enable the Sandbox on my macOS application the application throws (most likely because shared memory is unavailable).
Here is the exact error:
Referencing this part of the code: https://github.com/llvm/llvm-project/blob/llvmorg-17.0.6/openmp/runtime/src/kmp_runtime.cpp#L6884-L6906
Has anyone tried shipping openmp with sandbox enabled and has found a workaround for this?
The text was updated successfully, but these errors were encountered: