Skip to content

Commit

Permalink
use Intel Compiler icc
Browse files Browse the repository at this point in the history
  • Loading branch information
sensuikan1973 committed Jan 11, 2021
1 parent 0e6fe05 commit 04003d6
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/publish_artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
env: # See: https://docs.github.com/ja/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idenv
OUTPUT_DIR: edax_runner-bin
runs-on: ${{ matrix.os }}
timeout-minutes: 5
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
Expand All @@ -22,14 +22,29 @@ jobs:
edax-runner_bin_name: edax_runner-linux
edax_build_command: make build ARCH=x64-modern COMP=gcc OS=linux
edax_bin_name: lEdax-x64-modern
intel_components_install_script: oneapi-ci/scripts/install_linux.sh
intel_cpp_components: intel.oneapi.lin.dpcpp-cpp-compiler-pro
hrckit_url: https://registrationcenter-download.intel.com/akdlm/irc_nas/17427/l_HPCKit_p_2021.1.0.2684_offline.sh
intel_cpp_components_cache_path: /opt/intel/oneapi/compiler
prepare_command_for_cache_restore_of_cpp_components: ''
- os: windows-latest
edax-runner_bin_name: edax_runner-windows.exe
edax_build_command: make build ARCH=x64 COMP=gcc OS=windows
edax_bin_name: wEdax-x64-modern.exe
intel_components_install_script: oneapi-ci/scripts/install_windows.bat
intel_cpp_components: intel.oneapi.win.cpp-compiler
hrckit_url: https://registrationcenter-download.intel.com/akdlm/irc_nas/17392/w_HPCKit_p_2021.1.0.2682_offline.exe
intel_cpp_components_cache_path: C:\Program Files (x86)\Intel\oneAPI\compiler
prepare_command_for_cache_restore_of_cpp_components: ''
- os: macOS-latest
edax-runner_bin_name: edax_runner-mac
edax_build_command: make build ARCH=x64-modern COMP=gcc OS=osx
edax_bin_name: mEdax
intel_components_install_script: oneapi-ci/scripts/install_macos.sh
intel_cpp_components: intel.oneapi.mac.cpp-compiler
hrckit_url: https://registrationcenter-download.intel.com/akdlm/irc_nas/17398/m_HPCKit_p_2021.1.0.2681_offline.dmg
intel_cpp_components_cache_path: /opt/intel/oneapi
prepare_command_for_cache_restore_of_cpp_components: sudo mkdir -p /opt/intel && sudo chown $USER /opt/intel

steps:
- uses: actions/checkout@v2
Expand All @@ -49,6 +64,26 @@ jobs:
path: edax-reversi
key: ${{ runner.os }}-edax-reversi-${{ hashFiles('scripts/build_edax.sh') }}

# setup Intel Compiler icc
# See: https://github.com/oneapi-src/oneapi-ci/issues/31
- uses: actions/checkout@v2
with:
repository: oneapi-src/oneapi-ci
path: oneapi-ci
- name: prepare for cache restore
run: ${{ matrix.prepare_command_for_cache_restore_of_cpp_components }}
- name: cache intel components
id: cache-intel-components
uses: actions/cache@v2
with:
path: /opt/intel/oneapi
key: install-${{ matrix.hrckit_url }}-${{ matrix.intel_cpp_components }}
- name: install
if: steps.cache-intel-components.outputs.cache-hit != 'true'
run: ${{ matrix.intel_components_install_script }} ${{ matrix.hrckit_url }} ${{ matrix.intel_cpp_components }}
- name: test dayooooo
run: icc -h

- name: build edax-runner
env:
dst: ${{ env.OUTPUT_DIR }}
Expand Down

0 comments on commit 04003d6

Please sign in to comment.