Skip to content

Commit

Permalink
Try to build portBLAS using Intel nightly release
Browse files Browse the repository at this point in the history
try

try

try

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update
  • Loading branch information
MaryaSharf committed Nov 20, 2023
1 parent db2f73e commit 4bb0283
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/build_portBLAS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# 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: Setup APT Repository
run: sudo add-apt-repository universe

- name: Install BLAS Library
run: sudo apt-get install -y libblas-dev libopenblas64-dev libopenblas-dev libpthread-stubs0-dev libboost-all-dev

- name: Download Daily Release
run: |
wget "https://github.com/intel/llvm/releases/download/nightly-2023-10-17/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: Clone portBLAS
run: |
git clone --recursive https://github.com/codeplaysoftware/portBLAS
- name: Set up Environment
run: |
export LD_LIBRARY_PATH=$(pwd)/linux_nightly_release/lib:$LD_LIBRARY_PATH
export CMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/openblas64-pthread
export CMAKE_INSTALL_PREFIX=/usr/lib/x86_64-linux-gnu/openblas64-pthread
export CXX=$(pwd)/linux_nightly_release/bin/clang++
export CMAKE_C_COMPILER=$(pwd)/linux_nightly_release/bin/clang
CXX=$(pwd)/linux_nightly_release/bin/clang++
cmake -B portBLAS_build_dir portBLAS -GNinja -DSYCL_COMPILER=dpcpp
ninja -C $(pwd)/portBLAS_build_dir
2 changes: 2 additions & 0 deletions cmake_threads_tr/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cmake_minimum_required(VERSION 3.26)
find_package(Threads)

0 comments on commit 4bb0283

Please sign in to comment.