-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add portBLAS and portDNN as separate actions to the
nightly tartan job using Intel nightly release
- Loading branch information
1 parent
232f282
commit f928108
Showing
3 changed files
with
66 additions
and
18 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,30 @@ | ||
name: build-portBLAS | ||
description: Action to clone and build portBLAS using oneAPI | ||
|
||
inputs: | ||
workspace: | ||
description: 'Main workflow workspace' | ||
default: ${{ github.workspace }} | ||
|
||
runs: | ||
# We don't want a new docker just a list of steps, so mark as composite | ||
using: "composite" | ||
steps: | ||
- name: Clone portBLAS | ||
shell: bash | ||
run: git clone --recursive https://github.com/codeplaysoftware/portBLAS | ||
|
||
- name: Set up Environment and Build portBLAS | ||
shell: bash | ||
run: | | ||
ls | ||
export LD_LIBRARY_PATH=${{ inputs.workspace }}/linux_nightly_release/lib:$LD_LIBRARY_PATH | ||
export CMAKE_CXX_COMPILER=${{ inputs.workspace }}/linux_nightly_release/bin/clang++ | ||
export CMAKE_C_COMPILER=${{ inputs.workspace }}/linux_nightly_release/bin/clang | ||
export OCL_ICD_FILENAMES=${{ inputs.workspace }}/build/lib/libCL.so | ||
export CXX=${{ inputs.workspace }}/linux_nightly_release/bin/clang++ | ||
# Note: With default options enabled, portBLAS supports complex math using | ||
# <ext/oneapi/experimental/sycl_complex.hpp>. It was removed in DPC++ in 0b5757bf. | ||
# To disable this -DBLAS_ENABLE_COMPLEX=OFF needs to added to cmake command line. | ||
cmake -B portBLAS_build_dir portBLAS -GNinja -DSYCL_COMPILER=dpcpp -DBLAS_ENABLE_COMPLEX=OFF | ||
ninja -C $(pwd)/portBLAS_build_dir |
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,27 @@ | ||
name: build-portDNN | ||
description: Action to clone and build portDNN using oneAPI | ||
|
||
inputs: | ||
workspace: | ||
description: 'Main workflow workspace' | ||
default: ${{ github.workspace }} | ||
|
||
runs: | ||
# We don't want a new docker just a list of steps, so mark as composite | ||
using: "composite" | ||
steps: | ||
- name: Clone portDNN | ||
shell: bash | ||
run: git clone --recursive https://github.com/codeplaysoftware/portDNN.git | ||
|
||
- name: Set up Environment and build portDNN | ||
shell: bash | ||
run: | | ||
ls | ||
export LD_LIBRARY_PATH=${{ inputs.workspace }}/linux_nightly_release/lib:$LD_LIBRARY_PATH | ||
export CMAKE_CXX_COMPILER=${{ inputs.workspace }}/linux_nightly_release/bin/clang++ | ||
export CMAKE_C_COMPILER=${{ inputs.workspace }}/linux_nightly_release/bin/clang | ||
export OCL_ICD_FILENAMES=${{ inputs.workspace }}/build/lib/libCL.so | ||
cmake -B portDNN_build_dir portDNN -GNinja -DCMAKE_CXX_COMPILER=$(pwd)/linux_nightly_release/bin/clang++ -DSNN_BUILD_BENCHMARKS=OFF -DSNN_BENCH_SYCLBLAS=OFF -DSNN_BUILD_DOCUMENTATION=OFF | ||
ninja -C portDNN_build_dir |
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