Skip to content

Commit

Permalink
meraculous: add linux-aarch64 build (#50566)
Browse files Browse the repository at this point in the history
* meraculous: add linux-aarch64 build

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>

* meraculous: add a patch for aarch64 and arm64 builds

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>

---------

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g authored Nov 27, 2024
1 parent 91a28ec commit 704dbec
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
4 changes: 3 additions & 1 deletion recipes/meraculous/build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/bash

set -xe

mkdir build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DBUILD_SHARED_LIBS=ON \
..
make
make -j ${CPU_COUNT}
make install
14 changes: 14 additions & 0 deletions recipes/meraculous/meraculous-aarch64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- Meraculous-v2.2.6/src/c/Compat.h 2018-08-10 22:43:06.115287000 +0000
+++ Meraculous-v2.2.6.working/src/c/Compat.h 2024-11-25 14:49:34.912000000 +0000
@@ -82,11 +82,7 @@
#include <sched.h> // For sched_setaffinity
#endif

-#ifndef __APPLE__
-#include <xmmintrin.h> // This is currently (in Dec 2013) broken on Mac OS X 10.9 (Apple clang-500.2.79)
-#else
#define _mm_prefetch(...) {}
-#endif

typedef int64_t _int64;
typedef uint64_t _uint64;
7 changes: 6 additions & 1 deletion recipes/meraculous/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ source:
patches:
- 0001-Remove-compiler-upper-bound-version-check.patch
- 0002-No-static-linking.patch
- meraculous-aarch64.patch # [aarch64 or arm64]

build:
skip: True # [osx]
number: 7
number: 8
run_exports:
- {{ pin_subpackage("meraculous", max_pin="x") }}

requirements:
build:
Expand Down Expand Up @@ -51,6 +54,8 @@ about:
license_file: license.txt

extra:
additional-platforms:
- linux-aarch64
identifiers:
- doi:10.1371/journal.pone.0023501
# https://arxiv.org/abs/1703.09852
Expand Down

0 comments on commit 704dbec

Please sign in to comment.