Update DeviceStorage_HIP.cpp #171
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build LSMS with cmake | |
on: [push, pull_request] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Install dependencies on ubuntu | |
run: | | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install build-essential \ | |
openmpi-bin libopenmpi-dev \ | |
ninja-build \ | |
libblas-dev \ | |
liblapack-dev \ | |
gfortran \ | |
libhdf5-dev \ | |
python3-pytest -y | |
- name: Configure CMake | |
run: | | |
cmake -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | |
-DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/toolchain/testing.cmake \ | |
-DBUILD_TESTING=ON \ | |
-S ${{github.workspace}} -B ${{github.workspace}}/build | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --parallel | |
- name: Run CTests | |
working-directory: ${{github.workspace}}/build | |
run: ctest --verbose -C ${{env.BUILD_TYPE}} | |
- run: echo "This job's status is ${{ job.status }}." |