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

Add intel MKL support #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
14 changes: 7 additions & 7 deletions .github/workflows/cmake_ctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
ccache: sccache

steps:

# This is just easier than debugging different compilers on different platforms
- name: Set up Clang
if: ${{ matrix.name != 'macOS' }}
Expand All @@ -61,24 +61,24 @@ jobs:
id: cache-ipp
uses: actions/cache@v3
with:
key: ipp-v1
path: C:\Program Files (x86)\Intel\oneAPI\ipp
key: intel-v2
path: C:\Program Files (x86)\Intel\oneAPI

- name: Install IPP (Windows)
if: (runner.os == 'Windows') && (steps.cache-ipp.outputs.cache-hit != 'true')
shell: bash
run: |
curl --output oneapi.exe https://registrationcenter-download.intel.com/akdlm/irc_nas/19078/w_BaseKit_p_2023.0.0.25940_offline.exe
./oneapi.exe -s -x -f oneapi
./oneapi/bootstrapper.exe -s -c --action install --components=intel.oneapi.win.ipp.devel --eula=accept -p=NEED_VS2022_INTEGRATION=1 --log-dir=.

./oneapi/bootstrapper.exe -s -c --action install --components=intel.oneapi.win.ipp.devel:intel.oneapi.win.mkl.devel --eula=accept -p=NEED_VS2022_INTEGRATION=1 --log-dir=.
./oneapi/bootstrapper.exe --list-components
- name: Save IPP cache even on job fail
if: runner.os == 'Windows' && (steps.cache-ipp.outputs.cache-hit != 'true')
uses: actions/cache/save@v3
with:
path: C:\Program Files (x86)\Intel\oneAPI\ipp
key: ipp-v1
key: intel-v2

# This lets us use sscache on Windows
# We need to install ccache here for Windows to grab the right version
- name: Install Ninja (Windows)
Expand Down
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,15 @@ if(MSVC)
else()
message("IPP LIBRARIES *NOT* FOUND")
endif()

find_package(MKL)
if(MKL_FOUND)
target_link_libraries("${PROJECT_NAME}" PUBLIC MKL::mkl_core)
message("MKL LIBRARIES FOUND")
target_compile_definitions("${PROJECT_NAME}" PUBLIC PAMPLEJUCE_MKL=1)
else()
message("MKL LIBRARIES *NOT* FOUND")
endif()
endif()

# Required for ctest (which is just easier for cross-platform CI)
Expand Down
2 changes: 1 addition & 1 deletion JUCE
Submodule JUCE updated 731 files