-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from FluidNumerics/bugfix/flang-compilers
Bugfix/flang compilers
- Loading branch information
Showing
5 changed files
with
166 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: linux-amdflang-cmake | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
paths-ignore: | ||
- 'AUTHORS.md' | ||
- 'LICENSE.md' | ||
- 'README.md' | ||
pull_request: | ||
paths-ignore: | ||
- 'AUTHORS.md' | ||
- 'LICENSE.md' | ||
- 'README.md' | ||
|
||
jobs: | ||
linux-tests: | ||
timeout-minutes: 20 | ||
if: "!contains(github.event.head_commit.message, 'skip ci')" | ||
name: ${{ matrix.os }} - ${{ matrix.fcompiler }} - ${{ matrix.build_type }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-22.04 | ||
fcompiler: amdflang | ||
ccompiler: amdclang | ||
shell: bash | ||
build_type: debug | ||
memcheck: false | ||
|
||
defaults: | ||
run: | ||
shell: ${{ matrix.shell }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
|
||
- name: rocm-setup | ||
run: | | ||
sudo apt update -y | ||
wget https://repo.radeon.com/amdgpu-install/6.1.1/ubuntu/jammy/amdgpu-install_6.1.60101-1_all.deb | ||
sudo apt install -y ./amdgpu-install_6.1.60101-1_all.deb | ||
sudo amdgpu-install --accept-eula -y --usecase=openmpsdk --no-dkms | ||
- name: Show version information | ||
run: | | ||
export PATH=${PATH}:/opt/rocm/bin | ||
${{ matrix.fcompiler }} --version | ||
${{ matrix.ccompiler }} --version | ||
- name: Build with Cmake | ||
run: | | ||
export PATH=${PATH}:/opt/rocm/bin | ||
mkdir build | ||
cd build | ||
FC=${{ matrix.fcompiler }} CC=${{ matrix.ccompiler }} cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ../ | ||
make VERBOSE=1 | ||
- name: Run ctests | ||
run: | | ||
cd build/test | ||
ctest || ctest --rerun-failed --output-on-failure | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: linux-nvidia-hpc-cmake | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
paths-ignore: | ||
- 'AUTHORS.md' | ||
- 'LICENSE.md' | ||
- 'README.md' | ||
pull_request: | ||
paths-ignore: | ||
- 'AUTHORS.md' | ||
- 'LICENSE.md' | ||
- 'README.md' | ||
|
||
jobs: | ||
linux-tests: | ||
timeout-minutes: 20 | ||
if: "!contains(github.event.head_commit.message, 'skip ci')" | ||
name: ${{ matrix.os }} - ${{ matrix.toolchain.compiler }} - ${{ matrix.build_type }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: | ||
- {compiler: nvidia-hpc, version: '23.11'} | ||
include: | ||
- os: ubuntu-22.04 | ||
shell: bash | ||
build_type: debug | ||
toolchain: {compiler: nvidia-hpc, version: '23.11'} | ||
|
||
defaults: | ||
run: | ||
shell: ${{ matrix.shell }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- uses: fortran-lang/setup-fortran@v1 | ||
id: setup-fortran | ||
with: | ||
compiler: ${{ matrix.toolchain.compiler }} | ||
version: ${{ matrix.toolchain.version }} | ||
|
||
- name: Show version information | ||
run: | | ||
${{ env.FC }} --version | ||
${{ env.CC }} --version | ||
- name: Build with Cmake | ||
run: | | ||
export PATH=${PATH}:/opt/rocm/bin | ||
mkdir build | ||
cd build | ||
FC=${{ env.FC }} CC=${{ env.CC }} cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ../ | ||
make VERBOSE=1 | ||
- name: Run ctests | ||
run: | | ||
cd build/test | ||
ctest || ctest --rerun-failed --output-on-failure | ||
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
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
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