Skip to content

Commit

Permalink
Adding sycl_nbody action to tartan nightly build
Browse files Browse the repository at this point in the history
for testing

update

update

update

update

update

update

update

update

update

update

update

update

updtae

updtae

try

update

update

update

update

update

update

update

update

update

update

update

update
  • Loading branch information
MaryaSharf committed Jan 15, 2024
1 parent 3e4b9b5 commit 838a8a8
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 7 deletions.
40 changes: 40 additions & 0 deletions .github/actions/build_sycl_nbody_action/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build-sycl_nbody
description: Action to clone and build sycl_nbody 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 sycl_nbody
shell: bash
run: git clone --recursive https://github.com/codeplaysoftware/cuda-to-sycl-nbody.git

- name: Download Syclomatic release
shell: bash
run: |
wget "https://github.com/oneapi-src/SYCLomatic/releases/download/20240102/linux_release.tgz"
mkdir syclomatic_nightly_release
tar -xzf linux_release.tgz -C syclomatic_nightly_release
ls syclomatic_nightly_release
- name: Set up Environment and build
shell: bash
run: |
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 PATH=${{ inputs.workspace }}/linux_nightly_release/bin/clang++:$(pwd)/syclomatic_nightly_release:$PATH
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++
export OCL_ICD_VENDORS=/dev/null
export dpct_INCLUDE_DIR=$(pwd)/syclomatic_nightly_release/include
export dpct_LOCATION=$(pwd)/syclomatic_nightly_release
cd cuda-to-sycl-nbody
CMAKE_CXX_COMPILER=$(pwd)/linux_nightly_release/bin/clang++ sh scripts/build_dpcpp.sh -nocudalib -DBACKEND=DPCPP -DDPCPP_CUDA_SUPPORT=off
CA_HAL_DEBUG=1 OCL_ICD_FILENAMES=${{ inputs.workspace }}/build/lib/libCL.so ONEAPI_DEVICE_SELECTOR=opencl:acc SYCL_CONFIG_FILE_NAME= ./nbody_dpcpp 1
22 changes: 15 additions & 7 deletions .github/workflows/run_tartan.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Build, Run and Test Tartan EcoSystem
name: Build and Run Tartan
on:
pull_request:
paths:
- '.github/workflows/run_tartan.yml'
schedule:
- cron: '30 23 * * *' # Runs the workflow at midnight every day
# Allows you to run this workflow manually from the Actions tab
Expand Down Expand Up @@ -37,7 +40,7 @@ jobs:
pip install requests numpy h5py Pillow
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
sudo apt-get install -y libglfw3-dev libglm-dev libglew-dev libblas-dev libopenblas64-dev libopenblas-dev libpthread-stubs0-dev libboost-all-dev
- name: build riscv M1
uses: ./.github/actions/do_build_ock/do_build_m1
Expand All @@ -49,12 +52,17 @@ jobs:
tar -xzf sycl_linux.tar.gz -C linux_nightly_release
ls
- name: Build portBLAS
uses: ./.github/actions/build_portBLAS_action
- name: Build sycl_nbody
uses: ./.github/actions/build_sycl_nbody_action
with:
workspace: ${{ github.workspace }}

- name: Build portDNN
uses: ./.github/actions/build_portDNN_action
with:
workspace: ${{ github.workspace }}
# - name: Build portBLAS
# uses: ./.github/actions/build_portBLAS_action
# with:
# workspace: ${{ github.workspace }}

# - name: Build portDNN
# uses: ./.github/actions/build_portDNN_action
# with:
# workspace: ${{ github.workspace }}

0 comments on commit 838a8a8

Please sign in to comment.