Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to new simd approach #152

Merged
merged 2 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 32 additions & 5 deletions .github/workflows/build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,48 @@ on:

jobs:
build_feature:
name: Build Tests
name: Test ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
include:
- os: ubuntu-latest
name: linux
runTest: true
testExe: build/sst-effects-test

- os: macos-latest
name: mac
name: mac-x86
runTest: true
testExe: build/sst-effects-test
cmakeArgs: -DCMAKE_OSX_ARCHITECTURES=x86_64

- os: macos-latest
name: mac-arm
cmakeArgs: -DCMAKE_OSX_ARCHITECTURES=arm64

- os: macos-latest
name: mac-arm-nonative
cmakeArgs: -DCMAKE_OSX_ARCHITECTURES=arm64 -DSST_BASIC_BLOCKS_SIMD_OMIT_NATIVE_ALIASES=TRUE

- os: windows-latest
name: win
name: win-x86
runTest: true
testExe: build/Release/sst-effects-test.exe

- os: windows-latest
name: win-arm64
cmakeArgs: -G"Visual Studio 17 2022" -A arm64 -DCMAKE_SYSTEM_VERSION=10

- os: windows-latest
name: win-arm64ec
cmakeArgs: -G"Visual Studio 17 2022" -A arm64ec -DCMAKE_SYSTEM_VERSION=10

- os: windows-latest
name: win-arm64-non-native
cmakeArgs: -G"Visual Studio 17 2022" -A arm64 -DCMAKE_SYSTEM_VERSION=10 -DSST_BASIC_BLOCKS_SIMD_OMIT_NATIVE_ALIASES=TRUE

steps:

- name: Checkout code
Expand All @@ -32,10 +58,11 @@ jobs:

- name: Build Smoke test
run: |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DSST_EFFECTS_BUILD_TESTS=TRUE -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DSST_EFFECTS_BUILD_TESTS=TRUE ${{ matrix.cmakeArgs }}
cmake --build ./build --config Release

- name: Run Smoke Test
if: ${{ matrix.runTest }}
run: |
ls ${{ matrix.testExe }}
${{ matrix.testExe }}
17 changes: 9 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ if (${SST_EFFECTS_BUILD_TESTS})
message(STATUS "Building tests")
include(cmake/CPM.cmake)

if (NOT TARGET simde)
CPMAddPackage(NAME simde
GITHUB_REPOSITORY simd-everywhere/simde
VERSION 0.7.2
)
add_library(simde INTERFACE)
target_include_directories(simde INTERFACE ${simde_SOURCE_DIR})
endif ()

if (NOT TARGET sst-basic-blocks)
CPMAddPackage(NAME sst-basic-blocks
GITHUB_REPOSITORY surge-synthesizer/sst-basic-blocks
Expand Down Expand Up @@ -53,14 +62,6 @@ if (${SST_EFFECTS_BUILD_TESTS})
)
endif ()

if (NOT TARGET simde)
CPMAddPackage(NAME simde
GITHUB_REPOSITORY simd-everywhere/simde
VERSION 0.7.2
)
add_library(simde INTERFACE)
target_include_directories(simde INTERFACE ${simde_SOURCE_DIR})
endif ()

add_executable(${PROJECT_NAME}-test
tests/sst-effects-test.cpp
Expand Down
Loading
Loading