Skip to content

Commit

Permalink
Added xsimd 13.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 committed Oct 11, 2024
1 parent 9cfab4c commit e7d103f
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
26 changes: 26 additions & 0 deletions recipes/recipes_emscripten/xsimd/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

#!/bin/bash
set -e

# Configure step
mkdir -p build
cd build
emcmake cmake .. \
-DBUILD_TESTS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DDOWNLOAD_DOCTEST=ON

emmake make -j4

# Install step
emmake make install
cd ..

# Copy test files to $PREFIX/test
mkdir -p $PREFIX/bin
cp test/test_wasm/browser_main.html $PREFIX/bin/
cp test/test_wasm/test_wasm_playwright.py $PREFIX/bin/
cp build/test/test_xsimd.js $PREFIX/bin/
cp build/test/test_xsimd.wasm $PREFIX/bin/
46 changes: 46 additions & 0 deletions recipes/recipes_emscripten/xsimd/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
context:
name: xsimd
version: 13.0.0

package:
name: ${{ name|lower }}
version: ${{ version }}

source:
url: https://github.com/xtensor-stack/xsimd/archive/refs/tags/${{ version }}.tar.gz
sha256: 8bdbbad0c3e7afa38d88d0d484d70a1671a1d8aefff03f4223ab2eb6a41110a3

build:
number: 0

requirements:
build:
- ${{ compiler('cxx') }}
- cmake
- ninja
host:
- python

tests:
- script: |
echo "install playwright"
playwright install
python ${PREFIX}/bin/test_wasm_playwright.py ${PREFIX}/bin
requirements:
build:
- microsoft::playwright
about:
homepage: https://github.com/xtensor-stack/xsimd
license: BSD-3-Clause
license_file: LICENSE
summary: C++ Wrappers for SIMD Intrinsices
description: High-level APIs for SIMD operations
documentation: https://xsimd.readthedocs.io
repository: https://github.com/xtensor-stack/xsimd

extra:
recipe-maintainers:
- JohanMabille
- anutosh491

0 comments on commit e7d103f

Please sign in to comment.