Skip to content

Commit 2938646

Browse files
GuyAv46rafie
andauthored
ARM build configuration (#165)
* added arm configuration * changed image * changed docker to machine * install git as sudo * fixed system-setup.py * update dependencies * increased timeout * running ARM on tiny-build flow Co-authored-by: rafie <[email protected]>
1 parent 17c7d3f commit 2938646

File tree

5 files changed

+41
-23
lines changed

5 files changed

+41
-23
lines changed

.circleci/config.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,17 @@ commands:
5959
- run:
6060
name: basic install
6161
command: |
62-
apt-get update
62+
apt-get update --fix-missing
6363
apt-get install -y git
6464
65+
setup-ubuntu-sudo:
66+
steps:
67+
- run:
68+
name: basic install
69+
command: |
70+
sudo apt-get update --fix-missing
71+
sudo apt-get install -y git
72+
6573
setup-centos:
6674
steps:
6775
- run:
@@ -170,6 +178,14 @@ jobs:
170178
- setup-centos
171179
- tiny-build-steps
172180

181+
build-arm:
182+
resource_class: arm.large
183+
machine:
184+
image: ubuntu-2004:current
185+
steps:
186+
- setup-ubuntu-sudo
187+
- tiny-build-steps
188+
173189
build-macos:
174190
macos:
175191
xcode: 11.6.0
@@ -342,7 +358,7 @@ workflows:
342358
<<: *on-any-branch
343359
- build-rocky8:
344360
<<: *on-any-branch
345-
- build-rocky8:
361+
- build-arm:
346362
<<: *on-any-branch
347363
- build-macos:
348364
<<: *on-any-branch

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ classifiers = [
2828
python = "^3.7"
2929

3030
[tool.poetry.dev-dependencies]
31-
numpy = "1.21"
32-
tox = "^3.24.1"
31+
numpy = "^1.21"
32+
tox = "^3.25.0"
3333
tox-poetry = "^0.4.0"
3434
hnswlib = "^0.5.2"
3535
pytest = "^6.2.4"
36-
scipy = "^1.5.4"
37-
h5py = "^3.6.0"
36+
scipy = "^1.6"
37+
h5py = "^3.7.0"
3838
pybind11 = {path = "deps/pybind11"}
39-
rltest = "0.4.2"
39+
rltest = "0.5.4"
4040

4141

4242
[build-system]

sbin/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pip>=21.0
2-
poetry>=1.1.8
3-
tox>=3.24.2
4-
tox-poetry>=0.4.0
1+
pip>=21.1
2+
poetry>=1.1.13
3+
tox>=3.25.0
4+
tox-poetry>=0.4.1

sbin/system-setup.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,42 @@
1313
#----------------------------------------------------------------------------------------------
1414

1515
class VecSimSetup(paella.Setup):
16-
def __init__(self, nop=False):
17-
paella.Setup.__init__(self, nop)
16+
def __init__(self, args):
17+
paella.Setup.__init__(self, args.nop)
1818

1919
def common_first(self):
2020
self.install_downloaders()
21-
self.pip_install("wheel")
22-
self.pip_install("setuptools --upgrade")
2321

22+
self.run("%s/bin/enable-utf8" % READIES, sudo=self.os != 'macos')
2423
self.install("git")
2524

26-
self.run("%s/bin/enable-utf8" % READIES)
27-
self.run("%s/bin/getcmake" % READIES)
28-
2925
def debian_compat(self):
3026
self.run("%s/bin/getgcc --modern" % READIES)
31-
self.install("python3-dev clang-format valgrind")
27+
self.install("python3-dev valgrind")
3228

3329
def redhat_compat(self):
3430
self.install("redhat-lsb-core")
31+
self.run("%s/bin/getepel" % READIES, sudo=True)
32+
self.install("libatomic")
33+
3534
self.run("%s/bin/getgcc --modern" % READIES)
3635

3736
def fedora(self):
37+
self.install("libatomic")
3838
self.run("%s/bin/getgcc --modern" % READIES)
3939

4040
def macos(self):
4141
self.install_gnu_utils()
4242
self.run("%s/bin/getgcc --modern" % READIES)
43-
self.install("clang-format")
4443

4544
def linux_last(self):
4645
self.run("%s/bin/getclang" % READIES)
4746

4847
def common_last(self):
49-
self.run("python3 %s/bin/getrmpytools" % READIES)
48+
self.run("{PYTHON} {READIES}/bin/getcmake --usr".format(PYTHON=self.python, READIES=READIES),
49+
sudo=self.os != 'macos')
50+
self.run("{PYTHON} {READIES}/bin/getrmpytools --reinstall".format(PYTHON=self.python, READIES=READIES))
51+
self.run("%s/bin/getclang --format" % READIES)
5052
self.pip_install("-r %s/sbin/requirements.txt" % ROOT)
5153

5254
#----------------------------------------------------------------------------------------------
@@ -55,4 +57,4 @@ def common_last(self):
5557
parser.add_argument('-n', '--nop', action="store_true", help='no operation')
5658
args = parser.parse_args()
5759

58-
VecSimSetup(nop = args.nop).setup()
60+
VecSimSetup(args).setup()

src/VecSim/spaces/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ target_link_libraries(VectorSimilaritySpaces VectorSimilaritySpaces_no_optimizat
5252

5353
if(NOT APPLE)
5454
target_link_libraries(VectorSimilaritySpaces cpu_features)
55-
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")
55+
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")
5656
target_link_libraries(VectorSimilaritySpaces cpu_features)
5757
endif()
5858

0 commit comments

Comments
 (0)