Skip to content

Commit

Permalink
Apple aarch64 support (#544)
Browse files Browse the repository at this point in the history
* aarch64 architecture does not understand fast path. going slow for now

* remove unused imports

* build wheels for both Mac architectures
  • Loading branch information
wilko77 authored Dec 1, 2022
1 parent ff68175 commit 5860ade
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]
os: [ubuntu-20.04, windows-2019, macos-11]

steps:
- uses: actions/checkout@v2
Expand All @@ -23,6 +23,7 @@ jobs:
# to supply options, put them in 'env', like:
env:
CIBW_SKIP: '*-win32 *i686'
CIBW_ARCHS_MACOS: x86_64 arm64

- uses: actions/upload-artifact@v3
with:
Expand Down
5 changes: 0 additions & 5 deletions anonlink/benchmark.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import itertools
import random
import operator
import os
from timeit import default_timer as timer

import bitarray
from clkhash.key_derivation import generate_key_lists
from clkhash.bloomfilter import stream_bloom_filters
from clkhash.randomnames import NameList

import anonlink


Expand Down
2 changes: 1 addition & 1 deletion anonlink/similarities/dice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ popcount<4>( uint64_t &c0, uint64_t &c1, uint64_t &c2, uint64_t &c3, const uint6

// Although `popcnt` from libpopcount.h works on Linux & MacOS
// The handrolled assembler is faster for 32 byte buffers
#if defined (_MSC_VER)
#if defined (_MSC_VER) || defined(__aarch64__)
c0 += popcnt(buf, 4*WORD_BYTES);
c1 += 0; c2 += 0; c3 += 0;
#else
Expand Down

0 comments on commit 5860ade

Please sign in to comment.