-
Notifications
You must be signed in to change notification settings - Fork 34
58 lines (48 loc) · 2.09 KB
/
build_portBLAS.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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