Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Intel test runner #16

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
- name: Run example programs
run: |
make examples
ldd bin/platform_query
./bin/platform_query
./bin/sum
./bin/nbody
Expand All @@ -74,18 +75,7 @@ jobs:
/opt/intel/oneapi/setvars.sh
/tmp/opencl_runtime.tgz
key: intel-cache-v2

- name: Download Intel OpenCL SDK
if: steps.cache-intel.outputs.cache-hit != 'true'
run: |
wget -q http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/16284/intel_sdk_for_opencl_applications_2020.0.270.tar.gz -O /tmp/opencl_runtime.tgz

- name: Install Intel OpenCL SDK
run: |
tar -xzf /tmp/opencl_runtime.tgz -C /tmp
sed 's/decline/accept/g' -i /tmp/intel_sdk_for_opencl_applications_2020.0.270/silent.cfg
sudo /tmp/intel_sdk_for_opencl_applications_2020.0.270/install.sh -s /tmp/intel_sdk_for_opencl_applications_2020.0.270/silent.cfg


- name: Install ifort with apt
if: steps.cache-intel.outputs.cache-hit != 'true'
run: |
Expand All @@ -97,13 +87,25 @@ jobs:
sudo apt-get install intel-oneapi-ifort
sudo rm -rf /opt/intel/oneapi/compiler/latest/linux/lib/emu
sudo rm -rf /opt/intel/oneapi/compiler/latest/linux/lib/oclfpga

sudo rm -rf /opt/intel/oneapi/compiler/2021.4.0/linux/lib/libOpenCL.so.1

- name: Setup ifort env
run: |
source /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
ifort --version

- name: Download Intel OpenCL SDK
if: steps.cache-intel.outputs.cache-hit != 'true'
run: |
wget -q https://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/17206/intel_sdk_for_opencl_applications_2020.3.494.tar.gz -O /tmp/opencl_runtime.tgz

- name: Install Intel OpenCL SDK
run: |
tar -xzf /tmp/opencl_runtime.tgz -C /tmp
sed 's/decline/accept/g' -i /tmp/intel_sdk_for_opencl_applications_2020.3.494/silent.cfg
sudo /tmp/intel_sdk_for_opencl_applications_2020.3.494/install.sh -s /tmp/intel_sdk_for_opencl_applications_2020.3.494/silent.cfg

- name: Run tests (debug)
run: |
make -j test BUILD=debug FC=ifort
Expand All @@ -119,6 +121,7 @@ jobs:
pushd examples
make FC=ifort
popd
ldd bin/platform_query
./bin/platform_query
./bin/sum
./bin/nbody
Expand Down