Skip to content

Commit 5860ade

Browse files
authored
Apple aarch64 support (#544)
* aarch64 architecture does not understand fast path. going slow for now * remove unused imports * build wheels for both Mac architectures
1 parent ff68175 commit 5860ade

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/build_wheels.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
os: [ubuntu-20.04, windows-2019, macos-10.15]
16+
os: [ubuntu-20.04, windows-2019, macos-11]
1717

1818
steps:
1919
- uses: actions/checkout@v2
@@ -23,6 +23,7 @@ jobs:
2323
# to supply options, put them in 'env', like:
2424
env:
2525
CIBW_SKIP: '*-win32 *i686'
26+
CIBW_ARCHS_MACOS: x86_64 arm64
2627

2728
- uses: actions/upload-artifact@v3
2829
with:

anonlink/benchmark.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
import itertools
22
import random
3-
import operator
43
import os
54
from timeit import default_timer as timer
65

76
import bitarray
8-
from clkhash.key_derivation import generate_key_lists
9-
from clkhash.bloomfilter import stream_bloom_filters
10-
from clkhash.randomnames import NameList
11-
127
import anonlink
138

149

anonlink/similarities/dice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ popcount<4>( uint64_t &c0, uint64_t &c1, uint64_t &c2, uint64_t &c3, const uint6
3939

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

0 commit comments

Comments
 (0)