Skip to content
Merged

v4.1 #622

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ on:
push:
branches:
- main
- devel
pull_request:
branches:
- main
- devel


jobs:
Expand Down Expand Up @@ -186,3 +188,8 @@ jobs:
coverage-files: ./${{ env.tracefile }}
minimum-coverage: ${{ env.min_coverage }}
github-token: ${{ secrets.GITHUB_TOKEN }}

# temporarily DISABLING above reporting of LCOV results in
# PR since they're not yet representative and will only
# confuse incoming unitaryHACK contributors
if: false
68 changes: 60 additions & 8 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@
# code with (attemptedly) all possible configurations
# of operating system, precision, multithreading,
# distribution, GPU-acceleration (via CUDA or HIP),
# and cuQuantum (else custom kernels). Currently,
# this wastefully downlaods and installs all needed
# compilers (like libomp, CUDA, ROCm). Compilation
# and cuQuantum (else custom kernels). Compilation
# includes the v4 unit and integration tests, the
# deprecated v3 tests (when possible), and all the
# example programs. No compiled execs are run however.
# Note that ARM compilation is not yet tested here,
# but in fact Linux ARM is used by a paid test runner.
# example programs. All 'isolated' example executables
# are then run (both C and C++ versions) to ensure the
# build was successful and does not cause link-time
# errors. Then, all 'automated' examples are run which
# permits contributors to demo or test their changes
# across all operation systems and compilers.
#
# Note:
# - This workflow currently wastefully re-downloads and
# installs all needed compilers (like libomp, CUDA, ROCm)
# - ARM compilation is not tested here, though it is used
# by the paid multithreaded CI tests.
#
# @author Tyson Jones

Expand All @@ -20,9 +27,11 @@ on:
push:
branches:
- main
- devel
pull_request:
branches:
- main
- devel


jobs:
Expand Down Expand Up @@ -51,7 +60,7 @@ jobs:

# compile QuEST with all combinations of below flags
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [windows-latest, ubuntu-latest, macos-latest]
precision: [1, 2, 4]
omp: [ON, OFF]
mpi: [ON, OFF]
Expand Down Expand Up @@ -138,10 +147,12 @@ jobs:

# constants
env:
build_dir: "build"
cuda_arch: 70
hip_arch: gfx801
rocm_path: /opt/rocm/bin
build_dir: build
isolated_dir: build/examples/isolated
automated_dir: build/examples/automated

# perform the job
steps:
Expand Down Expand Up @@ -230,3 +241,44 @@ jobs:
# force 'Release' build (needed by MSVC to enable optimisations)
- name: Compile
run: cmake --build ${{ env.build_dir }} --config Release --parallel

# run all compiled isolated examples to test for link-time errors,
# continuing if any fail (since some deliberately fail)
- name: Run isolated examples (Windows)
if: ${{ matrix.os == 'windows-latest' }}
working-directory: ${{ env.isolated_dir }}/Release/
shell: pwsh
run: |
Get-ChildItem -Filter '*.exe' -File |
ForEach-Object {
Write-Host "`r`n[[[ $($_.Name) ]]]`r`n"
& $_.FullName
}
- name: Run isolated examples (Unix)
if: ${{ matrix.os != 'windows-latest' }}
working-directory: ${{ env.isolated_dir }}
run: |
for fn in *_c *_cpp; do
printf "\n[[[ $fn ]]]\n"
./$fn || true
done

# run all compiled 'automated' examples
- name: Run automated examples (Windows)
if: ${{ matrix.os == 'windows-latest' }}
working-directory: ${{ env.automated_dir }}/Release/
shell: pwsh
run: |
Get-ChildItem -Filter '*.exe' -File |
ForEach-Object {
Write-Host "`r`n[[[ $($_.Name) ]]]`r`n"
& $_.FullName
}
- name: Run automated examples (Unix)
if: ${{ matrix.os != 'windows-latest' }}
working-directory: ${{ env.automated_dir }}
run: |
for fn in *_c *_cpp; do
printf "\n[[[ $fn ]]]\n"
./$fn || true
done
2 changes: 1 addition & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
on:
push:
branches:
- master
- main
workflow_dispatch:


Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_free.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ on:
push:
branches:
- main
- devel
pull_request:
branches:
- main
- devel


jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_paid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: test (paid, accelerated)

# @todo
# this workflow can only be run on the 'default'
# branch (i.e. master) when manually triggered by
# branch (i.e. main) when manually triggered by
# github actions, so as not to incur unexpected
# costs. I want for this to be automatically
# enqueued but not run in a PR, requiring manual
Expand Down
4 changes: 4 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ Dr Ian Bush [consultant]
HPC

External contributors:
James Richings
patched overflow in bitwise.hpp logic
Luc Jaulmes
patched v4's install process using CMake
Jakub Adamski
optimised distributed communication by sending max-size messages asynchronously
Bruno Villasenor Alvarez on behalf of AMD
Expand Down
Loading