Maratyszcza / pthreadpool

Portable (POSIX/Windows/Emscripten) thread pool for C/C++
BSD 2-Clause "Simplified" License
342 stars 132 forks source link

Support for macos_arm64: added config for macos_arm64 #14

Closed simonmaurer closed 3 years ago

simonmaurer commented 3 years ago

with respect to this issue on building XNNPACK for macos_arm64 platform:

this PR allows the compilation for the recent macos_arm64 platform (Apple silicon) using bazel. verified using the following bazel versions:

bazel build -c opt --config=macos_arm64

specification of the platform config is mandatory for a succesful build.

as XNNPACK directly and TensorFlow indirectly depend on pthreadpool, once this PR is reviewed and accepted follow-up PRs on these two repos can be issued