diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a91e53e..b107f3b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,6 +55,7 @@ jobs: - name: Run example programs run: | make examples + ldd bin/platform_query ./bin/platform_query ./bin/sum ./bin/nbody @@ -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: | @@ -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 @@ -119,6 +121,7 @@ jobs: pushd examples make FC=ifort popd + ldd bin/platform_query ./bin/platform_query ./bin/sum ./bin/nbody