-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into c-cpp-example-ci-gha
- Loading branch information
Showing
77 changed files
with
457 additions
and
971 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 |
---|---|---|
@@ -1,124 +1,128 @@ | ||
jobs: | ||
- job: Native | ||
strategy: | ||
matrix: | ||
Linux: | ||
imageName: "ubuntu-22.04" | ||
macOS: | ||
imageName: "macos-13" | ||
Windows: | ||
imageName: "windows-2019" | ||
pool: | ||
vmImage: $(imageName) | ||
# Disabling Azure pipelines until we can get them working correctly | ||
trigger: none | ||
pr: none | ||
|
||
steps: | ||
# ----------------------- | ||
# Install dependencies | ||
# ----------------------- | ||
# Linux | ||
- bash: | | ||
sudo apt-get update | ||
sudo apt-get install -y libzmq5-dev ninja-build | ||
condition: eq( variables['Agent.OS'], 'Linux' ) | ||
displayName: Linux - Install ZeroMQ and Ninja | ||
# macOS | ||
- bash: | | ||
brew install zeromq ninja boost | ||
condition: eq( variables['Agent.OS'], 'Darwin' ) | ||
displayName: macOS - Install Boost, ZeroMQ, and Ninja | ||
# jobs: | ||
# - job: Native | ||
# strategy: | ||
# matrix: | ||
# Linux: | ||
# imageName: "ubuntu-22.04" | ||
# macOS: | ||
# imageName: "macos-13" | ||
# Windows: | ||
# imageName: "windows-2019" | ||
# pool: | ||
# vmImage: $(imageName) | ||
|
||
# ----------------------- | ||
# Checkout HELICS | ||
# ----------------------- | ||
- bash: | | ||
cmake --version | ||
git clone https://github.com/GMLC-TDC/HELICS | ||
cd HELICS | ||
git checkout ${HELICS_COMMITISH:-develop} | ||
if [[ "${HELICS_PR_TARGET}" != "" ]]; then | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "HELICS-bot" | ||
git merge --no-commit --no-ff origin/${HELICS_PR_TARGET} || exit $? | ||
fi | ||
git submodule update --init --recursive | ||
displayName: Checkout HELICS | ||
# steps: | ||
# # ----------------------- | ||
# # Install dependencies | ||
# # ----------------------- | ||
# # Linux | ||
# - bash: | | ||
# sudo apt-get update | ||
# sudo apt-get install -y libzmq5-dev ninja-build | ||
# condition: eq( variables['Agent.OS'], 'Linux' ) | ||
# displayName: Linux - Install ZeroMQ and Ninja | ||
# # macOS | ||
# - bash: | | ||
# brew install zeromq ninja boost | ||
# condition: eq( variables['Agent.OS'], 'Darwin' ) | ||
# displayName: macOS - Install Boost, ZeroMQ, and Ninja | ||
|
||
# ----------------------- | ||
# Configure HELICS | ||
# ----------------------- | ||
# Linux, macOS | ||
- task: CMake@1 | ||
inputs: | ||
workingDirectory: HELICS/build | ||
cmakeArgs: -GNinja -DCMAKE_BUILD_TYPE=Release -DHELICS_BUILD_CXX_SHARED_LIB=ON .. | ||
displayName: 'Linux/macOS - Configure HELICS' | ||
condition: ne( variables['Agent.OS'], 'Windows_NT' ) | ||
# Windows | ||
- task: CMake@1 | ||
inputs: | ||
workingDirectory: HELICS/build | ||
cmakeArgs: -Ax64 -DCMAKE_BUILD_TYPE=Release -DHELICS_BUILD_CXX_SHARED_LIB=ON .. | ||
displayName: 'Windows - Configure HELICS' | ||
condition: eq( variables['Agent.OS'], 'Windows_NT' ) | ||
# # ----------------------- | ||
# # Checkout HELICS | ||
# # ----------------------- | ||
# - bash: | | ||
# cmake --version | ||
# git clone https://github.com/GMLC-TDC/HELICS | ||
# cd HELICS | ||
# git checkout ${HELICS_COMMITISH:-develop} | ||
# if [[ "${HELICS_PR_TARGET}" != "" ]]; then | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "HELICS-bot" | ||
# git merge --no-commit --no-ff origin/${HELICS_PR_TARGET} || exit $? | ||
# fi | ||
# git submodule update --init --recursive | ||
# displayName: Checkout HELICS | ||
|
||
# ----------------------- | ||
# Install HELICS | ||
# ----------------------- | ||
- bash: | | ||
if [ -x "$(command -v sudo)" ]; then | ||
sudo cmake --build . --target install | ||
else | ||
cmake --build . --target install | ||
fi | ||
displayName: 'Install HELICS' | ||
workingDirectory: HELICS/build | ||
# # ----------------------- | ||
# # Configure HELICS | ||
# # ----------------------- | ||
# # Linux, macOS | ||
# - task: CMake@1 | ||
# inputs: | ||
# workingDirectory: HELICS/build | ||
# cmakeArgs: -GNinja -DCMAKE_BUILD_TYPE=Release -DHELICS_BUILD_CXX_SHARED_LIB=ON .. | ||
# displayName: 'Linux/macOS - Configure HELICS' | ||
# condition: ne( variables['Agent.OS'], 'Windows_NT' ) | ||
# # Windows | ||
# - task: CMake@1 | ||
# inputs: | ||
# workingDirectory: HELICS/build | ||
# cmakeArgs: -Ax64 -DCMAKE_BUILD_TYPE=Release -DHELICS_BUILD_CXX_SHARED_LIB=ON .. | ||
# displayName: 'Windows - Configure HELICS' | ||
# condition: eq( variables['Agent.OS'], 'Windows_NT' ) | ||
|
||
# # ----------------------- | ||
# # Install HELICS | ||
# # ----------------------- | ||
# - bash: | | ||
# if [ -x "$(command -v sudo)" ]; then | ||
# sudo cmake --build . --target install | ||
# else | ||
# cmake --build . --target install | ||
# fi | ||
# displayName: 'Install HELICS' | ||
# workingDirectory: HELICS/build | ||
|
||
# ----------------------- | ||
# Set HELICS_DIR env var | ||
# ----------------------- | ||
# Windows | ||
- bash: | | ||
dir=$(find C:/local -mindepth 1 -maxdepth 1 -type d -iname 'helics*') | ||
echo "##vso[task.setvariable variable=HELICS_DIR]$dir" | ||
displayName: 'Windows - Set HELICS_DIR env var' | ||
condition: eq( variables['Agent.OS'], 'Windows_NT' ) | ||
# # ----------------------- | ||
# # Set HELICS_DIR env var | ||
# # ----------------------- | ||
# # Windows | ||
# - bash: | | ||
# dir=$(find C:/local -mindepth 1 -maxdepth 1 -type d -iname 'helics*') | ||
# echo "##vso[task.setvariable variable=HELICS_DIR]$dir" | ||
# displayName: 'Windows - Set HELICS_DIR env var' | ||
# condition: eq( variables['Agent.OS'], 'Windows_NT' ) | ||
|
||
# ----------------------- | ||
# Configure Examples | ||
# ----------------------- | ||
# Linux, macOS | ||
- task: CMake@1 | ||
inputs: | ||
cmakeArgs: -GNinja -DCMAKE_BUILD_TYPE=Release .. | ||
displayName: 'Linux/macOS - Configure HELICS-Examples' | ||
condition: ne( variables['Agent.OS'], 'Windows_NT' ) | ||
# Windows | ||
- task: CMake@1 | ||
inputs: | ||
cmakeArgs: -Ax64 -DCMAKE_BUILD_TYPE=Release .. | ||
displayName: 'Windows - Configure HELICS-Examples' | ||
condition: eq( variables['Agent.OS'], 'Windows_NT' ) | ||
# # ----------------------- | ||
# # Configure Examples | ||
# # ----------------------- | ||
# # Linux, macOS | ||
# - task: CMake@1 | ||
# inputs: | ||
# cmakeArgs: -GNinja -DCMAKE_BUILD_TYPE=Release .. | ||
# displayName: 'Linux/macOS - Configure HELICS-Examples' | ||
# condition: ne( variables['Agent.OS'], 'Windows_NT' ) | ||
# # Windows | ||
# - task: CMake@1 | ||
# inputs: | ||
# cmakeArgs: -Ax64 -DCMAKE_BUILD_TYPE=Release .. | ||
# displayName: 'Windows - Configure HELICS-Examples' | ||
# condition: eq( variables['Agent.OS'], 'Windows_NT' ) | ||
|
||
# ----------------------- | ||
# Build Examples | ||
# ----------------------- | ||
- bash: | | ||
if [ -x "$(command -v sudo)" ]; then | ||
sudo cmake --build . | ||
else | ||
cmake --build . | ||
fi | ||
displayName: 'Build Examples' | ||
workingDirectory: build | ||
# # ----------------------- | ||
# # Build Examples | ||
# # ----------------------- | ||
# - bash: | | ||
# if [ -x "$(command -v sudo)" ]; then | ||
# sudo cmake --build . | ||
# else | ||
# cmake --build . | ||
# fi | ||
# displayName: 'Build Examples' | ||
# workingDirectory: build | ||
|
||
- job: Report_Results | ||
displayName: Report Results | ||
dependsOn: Native | ||
condition: and(succeededOrFailed(), variables['HELICS_PR_TARGET'], variables['HELICS_PR_SLUG'], variables['HELICS_PR_NUM']) | ||
variables: | ||
PR_STATUS_REPORT: $[ dependencies.Native.result ] | ||
steps: | ||
- bash: | | ||
.ci/report-results.sh | ||
env: | ||
HELICSBOT_GH_TOKEN: $(HELICSBot.GH.Token) | ||
# - job: Report_Results | ||
# displayName: Report Results | ||
# dependsOn: Native | ||
# condition: and(succeededOrFailed(), variables['HELICS_PR_TARGET'], variables['HELICS_PR_SLUG'], variables['HELICS_PR_NUM']) | ||
# variables: | ||
# PR_STATUS_REPORT: $[ dependencies.Native.result ] | ||
# steps: | ||
# - bash: | | ||
# .ci/report-results.sh | ||
# env: | ||
# HELICSBOT_GH_TOKEN: $(HELICSBot.GH.Token) |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
2 changes: 2 additions & 0 deletions
2
user_guide_examples/advanced/advanced_brokers/multi_broker/README.md
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# HELICS User Guide Advanced Topics - Broker Hierarchies | ||
|
||
This example does not currently work. [HELICS-Examples issue #125](https://github.com/GMLC-TDC/HELICS-Examples/issues/125) is tracking this example. | ||
|
||
This example demonstrates how to implement a broker that can use multiple messaging technologies (ZMQ, MPI, etc) when required by the computing environment. A full description of the example can be found in the [HELICS User Guide](https://docs.helics.org/en/latest/user-guide/examples/advanced_examples/advanced_brokers_multibroker.html). |
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
Oops, something went wrong.