Skip to content
Draft
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
32 changes: 18 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
gfortran-nix:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- name: Checkout code
Expand Down Expand Up @@ -55,12 +55,13 @@ jobs:
- name: Run example programs
run: |
make examples
ldd bin/platform_query
./bin/platform_query
./bin/sum
./bin/nbody

Intel:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v1
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 https://registrationcenter-download.intel.com/akdlm/IRC_NAS/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: Install ifort with apt
if: steps.cache-intel.outputs.cache-hit != 'true'
run: |
Expand All @@ -97,6 +87,19 @@ 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 /opt/intel/oneapi/compiler/2023.1.0/linux/lib/libOpenCL.so.1
sudo rm -f /etc/OpenCL/vendors/intel-oneapi-compiler-shared-opencl-cpu.icd

- name: Download Intel OpenCL SDK
if: steps.cache-intel.outputs.cache-hit != 'true'
run: |
wget -q https://registrationcenter-download.intel.com/akdlm/IRC_NAS/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: Setup ifort env
run: |
Expand All @@ -119,6 +122,7 @@ jobs:
pushd examples
make FC=ifort
popd
ldd bin/platform_query
./bin/platform_query
./bin/sum
./bin/nbody
Expand Down