-
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.
Try to build portBLAS using Intel nightly release
- Loading branch information
1 parent
de2bc33
commit aa74266
Showing
3 changed files
with
95 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,35 @@ | ||
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: Setup Ubuntu Environment | ||
shell: bash | ||
run: | | ||
ls | ||
sudo add-apt-repository universe | ||
sudo apt-get update | ||
sudo apt-get install -y libblas-dev libopenblas64-dev libopenblas-dev libpthread-stubs0-dev libboost-all-dev libglew-dev libglfw3-dev libglm-dev libxxf86vm-dev libxcursor-dev libxinerama-dev libxi-dev | ||
- 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++ | ||
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,58 @@ | ||
# Simple workflow for running non-documentation PR testing | ||
name: Build portBLAS | ||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/build_portBLAS.yml" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# build and run host x86_64, execute UnitCL and lit tests and build and run offline | ||
build_portBLAS: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
# installs tools, ninja, installs llvm and sets up sccahe | ||
- name: setup ubuntu | ||
uses: ./.github/actions/setup_ubuntu_build | ||
with: | ||
llvm_version: 17 | ||
llvm_build_type: RelAssert | ||
|
||
- name: build riscv M1 | ||
uses: ./.github/actions/do_build_ock/do_build_m1 | ||
|
||
- name: Download Daily Release | ||
run: | | ||
wget "https://github.com/intel/llvm/releases/download/nightly-2023-11-22/sycl_linux.tar.gz" | ||
# wget "https://github.com/intel/llvm/releases/download/nightly-$(date +'%Y-%m-%d')/sycl_linux.tar.gz" | ||
- name: Untar Tar File | ||
run: | | ||
mkdir linux_nightly_release | ||
tar -xzf sycl_linux.tar.gz -C linux_nightly_release | ||
ls | ||
- name: Build portBLAS | ||
uses: ./.github/actions/build_portBLAS_action | ||
with: | ||
workspace: ${{ github.workspace }} | ||
|
||
# - name: Set up Environment and build sycl-nbody | ||
# run: | | ||
# export LD_LIBRARY_PATH=$(pwd)/build/lib:$(pwd)/linux_nightly_release/lib:$(pwd)/linux_nightly_release/lib/libsycl.so:$LD_LIBRARY_PATH | ||
# export CMAKE_CXX_COMPILER=$(pwd)/linux_nightly_release/bin/clang++ | ||
# export CMAKE_C_COMPILER=$(pwd)/linux_nightly_release/bin/clang | ||
# export OCL_ICD_FILENAMES=$(pwd)/build/lib/libCL.so | ||
# export PATH=$(pwd)/linux_nightly_release/bin:$PATH | ||
# sh $(pwd)/cuda-to-sycl-nbody/scripts/build_dpcpp.sh -nocudalib -DBACKEND=DPCPP -DDPCPP_CUDA_SUPPORT=off -DCA_RUNTIME_COMPILER_ENABLED=off | ||
# ./nbody_dpcpp 1 |
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,2 @@ | ||
cmake_minimum_required(VERSION 3.26) | ||
find_package(Threads) |