Skip to content

Enable to initialize spatial/temporal/angular chirped laser + CI test #2414

Enable to initialize spatial/temporal/angular chirped laser + CI test

Enable to initialize spatial/temporal/angular chirped laser + CI test #2414

Workflow file for this run

# Copyright 2021-2022
#
# This file is part of HiPACE++.
#
# Authors: Axel Huebl
# License: BSD-3-Clause-LBNL
name: 🐧 HIP
on: [push, pull_request]
jobs:
build_hip:
name: HIP SP
runs-on: ubuntu-20.04
# -Werror
env: {CXXFLAGS: "-Wno-deprecated-declarations -Wno-error=pass-failed"}
steps:
- uses: actions/checkout@v2
- name: install dependencies
shell: bash
run: .github/workflows/setup/hip.sh
- name: CCache Cache
uses: actions/cache@v2
# - once stored under a key, they become immutable (even if local cache path content changes)
# - for a refresh the key has to change, e.g., hash of a tracked file in the key
with:
path: |
~/.ccache
~/.cache/ccache
key: ccache-hip-clang-${{ hashFiles('.github/workflows/hip.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }}-${{ github.event.repository.pushed_at }}
restore-keys: |
ccache-hip-clang-${{ hashFiles('.github/workflows/hip.yml') }}-
ccache-hip-clang-
- name: build HiPACE
shell: bash
run: |
source /etc/profile.d/rocm.sh
hipcc --version
which clang
which clang++
export CXX=$(which clang++)
export CC=$(which clang)
# "mpic++ --showme" forgets open-pal in Ubuntu 20.04 + OpenMPI 4.0.3
# https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/1941786
# https://github.com/open-mpi/ompi/issues/9317
export LDFLAGS="-lopen-pal"
cmake -S . -B build_sp \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DAMReX_AMD_ARCH=gfx900 \
-DHiPACE_COMPUTE=HIP \
-DHiPACE_MPI=ON \
-DHiPACE_PRECISION=SINGLE
cmake --build build_sp -j 2