-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dedicated macos-13 runner for openmp
- Loading branch information
1 parent
ab223d5
commit 9781e58
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: openmp-macos | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: configure OS | ||
run: | | ||
# os level stuff | ||
set -x | ||
brew install googletest llvm | ||
- name: install BLAS++ | ||
run: | | ||
cd .. | ||
git clone https://github.com/icl-utk-edu/blaspp.git | ||
mkdir blaspp-build | ||
cd blaspp-build | ||
cmake \ | ||
-DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ \ | ||
-DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=`pwd`/../blaspp-install \ | ||
-Dbuild_tests=OFF \ | ||
../blaspp | ||
make -j2 install | ||
- name: install Random123 | ||
run: | | ||
cd .. | ||
git clone https://github.com/DEShawResearch/Random123.git | ||
cd Random123/ | ||
mkdir -p `pwd`/../Random123-install/include | ||
cp -rp include/Random123 `pwd`/../Random123-install/include/ | ||
- name: build and test RandBLAS (release) | ||
run: | | ||
cd .. | ||
mkdir RandBLAS-build | ||
cd RandBLAS-build | ||
cmake \ | ||
-DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ \ | ||
-DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-Dblaspp_DIR=`pwd`/../blaspp-install/lib/cmake/blaspp/ \ | ||
-DRandom123_DIR=`pwd`/../Random123-install/include/ \ | ||
-DCMAKE_INSTALL_PREFIX=`pwd`/../RandBLAS-install \ | ||
../RandBLAS | ||
make -j2 install | ||
ctest --output-on-failure |