Skip to content

Commit

Permalink
Merge pull request #390 from MaryaSharf/marya/update_readme
Browse files Browse the repository at this point in the history
Update the OCK demo getting started guide with updated linux nightly …
  • Loading branch information
MaryaSharf authored Mar 5, 2024
2 parents ded1fb1 + 8413559 commit 636d252
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build_portBLAS_action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
- name: Get Intel OneAPI BaseToolkit
shell: bash
run: |
wget "https://github.com/intel/llvm/releases/download/nightly-2024-02-08/sycl_linux.tar.gz"
wget "https://github.com/intel/llvm/releases/download/nightly-2024-03-04/sycl_linux.tar.gz"
mkdir linux_nightly_release
tar -xzf sycl_linux.tar.gz -C linux_nightly_release
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/build_portDNN_action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ runs:
- name: Get Intel OneAPI Nightly Release
shell: bash
run: |
# Update the nightly release from intel/llvm from 2024-02-12 to daily once
# Update the nightly release from intel/llvm from 2024-03-04 to daily once
# everything has stablised
wget "https://github.com/intel/llvm/releases/download/nightly-2024-02-12/sycl_linux.tar.gz"
wget "https://github.com/intel/llvm/releases/download/nightly-2024-03-04/sycl_linux.tar.gz"
mkdir linux_nightly_release
tar -xzf sycl_linux.tar.gz -C linux_nightly_release
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/build_vgg_resnet_action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ runs:
- name: Get Intel OneAPI Nightly Release
shell: bash
run: |
wget "https://github.com/intel/llvm/releases/download/nightly-2024-02-08/sycl_linux.tar.gz"
wget "https://github.com/intel/llvm/releases/download/nightly-2024-03-04/sycl_linux.tar.gz"
mkdir linux_nightly_release
tar -xzf sycl_linux.tar.gz -C linux_nightly_release
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/run_ock_demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,20 @@ jobs:
run: |
ninja -C $(pwd)/build install
- name: Get Intel OneAPI BaseToolkit
- name: Get Intel OneAPI Nightly Release
run: |
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/bb99984f-370f-413d-bbec-38928d2458f2/l_dpcpp-cpp-compiler_p_2024.0.2.29.sh
export TERMINFO=/usr/lib/terminfo
sh $(pwd)/l_dpcpp-cpp-compiler_p_2024.0.2.29.sh -a --silent --eula accept
mv /home/runner/intel $(pwd)
# Update the nightly release from intel/llvm from 2024-03-04 to daily once
# everything has stablized
wget "https://github.com/intel/llvm/releases/download/nightly-2024-03-04/sycl_linux.tar.gz"
mkdir linux_nightly_release
tar -xzf sycl_linux.tar.gz -C linux_nightly_release

- name: Test RSICV examples
run: |
# Set environment variables
export LD_LIBRARY_PATH=$(pwd)/install/lib:$(pwd)/intel/oneapi/compiler/2024.0/lib/libsycl.so:$(pwd)/intel/oneapi/compiler/2024.0/lib:$LD_LIBRARY_PATH
export CMAKE_CXX_COMPILER=$(pwd)/intel/oneapi/compiler/2024.0/bin/compiler/clang++
export CMAKE_C_COMPILER=$(pwd)/intel/oneapi/compiler/2024.0/bin/compiler/clang
export LD_LIBRARY_PATH=$(pwd)/install/lib:$(pwd)/linux_nightly_release/lib:$LD_LIBRARY_PATH
export CMAKE_CXX_COMPILER=$(pwd)/linux_nightly_release/bin/clang++
export CMAKE_C_COMPILER=$(pwd)/linux_nightly_release/bin/clang
export CA_HAL_DEBUG=1
export CA_PROFILE_LEVEL=3
export ONEAPI_DEVICE_SELECTOR=opencl:fpga
Expand Down
24 changes: 17 additions & 7 deletions examples/technical_blogs/ock_demo_blog/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,27 @@ You'll need to extract the files from the archive file and and oneAPI nighlty re
downloaded from `intel/llvm`:

```sh
# TODO: Add wget commands for ock_build_artifacts, ock_demo_components and network_artifacts.
mkdir Release
cd Release
tar -xf ../ock_demo_artifacts.tar.gz
tar -xf ../ock_demo_components.tar.gz
tar -xf ../network_artifacts.tar.gz
# As of the current documentation, the latest nightly release available is dated 2024-01-30.
wget "https://github.com/intel/llvm/releases/download/nightly-2024-01-30/sycl_linux.tar.gz"

# As the current documentation, the latest ock-demo artifacts available is dated 2024-02-29.
wget https://github.com/codeplaysoftware/oneapi-construction-kit/releases/download/ock-demo-2024-02-29-f0588da/ock_demo_artifacts.tar.gz
wget https://github.com/codeplaysoftware/oneapi-construction-kit/releases/download/ock-demo-2024-02-29-f0588da/ock_demo_components.tar.gz
wget https://github.com/codeplaysoftware/oneapi-construction-kit/releases/download/ock-demo-2024-02-29-f0588da/network_artifacts.tar.gz

tar -xf ock_demo_artifacts.tar.gz
tar -xf ock_demo_components.tar.gz
# ock_demo_components comprises of portBLAS.tar.gz and portDNN.tar.gz
tar -xf portBLAS.tar.gz
tar -xf portDNN.tar.gz
tar -xf network_artifacts.tar.gz

# As of the current documentation, the latest nightly release available is dated 2024-03-04.
wget "https://github.com/intel/llvm/releases/download/nightly-2024-03-04/sycl_linux.tar.gz"
mkdir linux_nightly_release
tar -xzf sycl_linux.tar.gz -C linux_nightly_release
rm sycl_linux.tar.gz
rm sycl_linux.tar.gz ock_demo_artifacts.tar.gz ock_demo_components.tar.gz network_artifacts.tar.gz portBLAS_build.tar.gz portDNN_build.tar.gz

export RELEASE_DIR=$PWD
```

Expand Down

0 comments on commit 636d252

Please sign in to comment.