Skip to content

Commit

Permalink
Merge pull request #68 from browsermt/jelmervdl-patch-avx2-macos
Browse files Browse the repository at this point in the history
Fix AVX2 detection on macOS
  • Loading branch information
XapaJIaMnu authored Dec 14, 2021
2 parents 28cc4e7 + 53fc98b commit 08b1544
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Use target-agnostic matrix multiply interface for wasm builds and allow importing an implementation of this interface from separate wasm modules.

### Fixed
- Fix AVX2 detection on macOS
- Segfault of spm_train when compiled with -DUSE_STATIC_LIBS=ON seems to have gone away with update to newer SentencePiece version.
- Fix bug causing certain reductions into scalars to be 0 on the GPU backend. Removed unnecessary warp shuffle instructions.
- Do not apply dropout in embeddings layers during inference with dropout-src/trg
Expand Down
4 changes: 1 addition & 3 deletions cmake/FindSSE.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
ENDIF (AVX512_TRUE)

ELSEIF(CMAKE_SYSTEM_NAME MATCHES "Darwin")
EXEC_PROGRAM("/usr/sbin/sysctl -n machdep.cpu.features" OUTPUT_VARIABLE
CPUINFO)

EXEC_PROGRAM("/usr/sbin/sysctl -n machdep.cpu.features machdep.cpu.leaf7_features" OUTPUT_VARIABLE CPUINFO)
STRING(REGEX REPLACE "^.*[^S](SSE2).*$" "\\1" SSE_THERE ${CPUINFO})
STRING(COMPARE EQUAL "SSE2" "${SSE_THERE}" SSE2_TRUE)
IF (SSE2_TRUE)
Expand Down

0 comments on commit 08b1544

Please sign in to comment.