Skip to content
Closed
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
131 changes: 80 additions & 51 deletions .github/workflows/ci_Mac_x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- cron: '0 5 * * *'

jobs:
gambit_build:
standalones_build:
runs-on: [self-hosted, macOS,x64]
strategy:
fail-fast: false
Expand All @@ -31,58 +31,87 @@ jobs:
echo "Configure with cmake"
cd BUILD
# Ditching a few backends that don't currently work on Mac
cmake -DWITH_MPI=ON -DWITH_HEPMC=ON -DWITH_YODA=ON -DBUILD_FS_MODELS="CMSSM;MSSM;MDM" -Ditch="micromegas_DMsimpVectorMedVectorDM" ..
- name: Build scanners
cmake -DWITH_MPI=ON -DWITH_HEPMC=ON -DWITH_YODA=ON -Ditch="micromegas_DMsimpVectorMedVectorDM" ..
- name: Build standalones
run: |
echo "Build scanners"
echo "Test the building of the standalones"
cd BUILD
make -j $(( $(sysctl -n hw.ncpu)/2 )) scanners
cmake ..
- name: Build Backends for tests
run: |
echo "Building Backends"
cd BUILD
#make -j $(( $(sysctl -n hw.ncpu)/2 )) pythia higgssignals nulike ATLAS_FullLikes susyhit heplike superiso
make pythia
make higgssignals
make nulike
make ATLAS_FullLikes
make susyhit
make heplike
make superiso
make rivet
make contur
echo "Running cmake again, since this is required for ColliderBit/pythia"
cmake ..
- name: Build Gambit
run: |
echo "Build GAMBIT."
cd BUILD
make -j $(( $(sysctl -n hw.ncpu)/2 )) gambit
- name: Test spartan yaml
run: |
echo "Testing spartan.yaml (with cout printer)"
sed -i "" 's/ hdf5/ cout/g' yaml_files/spartan.yaml
./gambit -rf yaml_files/spartan.yaml
- name: CLI test
run: |
echo "Run the test of gambit help"
./gambit -h
- name: WC test
run: |
echo "Test WC_lite yaml (no printing)"
sed -i "" 's/ hdf5/ none/g' yaml_files/WC_lite.yaml
./gambit -f yaml_files/WC_lite.yaml
- name: ColliderBit test
run: |
echo "Test the ColliderBit CMSSM yaml file"
./gambit -f yaml_files/ColliderBit_CMSSM.yaml
- name: Build Backends
run: |
echo "Building all Backends"
cd BUILD
#make -j $(( $(sysctl -n hw.ncpu)/2 )) backends
make backends
make standalones

#gambit_build:
# runs-on: [self-hosted, macOS,x64]
# strategy:
# fail-fast: false
# matrix:
# arch: [x64]
# defaults:
# run:
# shell: bash -eo pipefail {0}
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Set up build environment
# run: |
# echo "Set up the build environment"
# mkdir -p BUILD
# cd BUILD
# - name: Configure with cmake
# run: |
# echo "Configure with cmake"
# cd BUILD
# # Ditching a few backends that don't currently work on Mac
# cmake -DWITH_MPI=ON -DWITH_HEPMC=ON -DWITH_YODA=ON -DBUILD_FS_MODELS="CMSSM;MSSM;MDM" -Ditch="micromegas_DMsimpVectorMedVectorDM" ..
# - name: Build scanners
# run: |
# echo "Build scanners"
# cd BUILD
# make -j $(( $(sysctl -n hw.ncpu)/2 )) scanners
# cmake ..
# - name: Build Backends for tests
# run: |
# echo "Building Backends"
# cd BUILD
# #make -j $(( $(sysctl -n hw.ncpu)/2 )) pythia higgssignals nulike ATLAS_FullLikes susyhit heplike superiso
# make pythia
# make higgssignals
# make nulike
# make ATLAS_FullLikes
# make susyhit
# make heplike
# make superiso
# make rivet
# make contur
# echo "Running cmake again, since this is required for ColliderBit/pythia"
# cmake ..
# - name: Build Gambit
# run: |
# echo "Build GAMBIT."
# cd BUILD
# make -j $(( $(sysctl -n hw.ncpu)/2 )) gambit
# - name: Test spartan yaml
# run: |
# echo "Testing spartan.yaml (with cout printer)"
# sed -i "" 's/ hdf5/ cout/g' yaml_files/spartan.yaml
# ./gambit -rf yaml_files/spartan.yaml
# - name: CLI test
# run: |
# echo "Run the test of gambit help"
# ./gambit -h
# - name: WC test
# run: |
# echo "Test WC_lite yaml (no printing)"
# sed -i "" 's/ hdf5/ none/g' yaml_files/WC_lite.yaml
# ./gambit -f yaml_files/WC_lite.yaml
# - name: ColliderBit test
# run: |
# echo "Test the ColliderBit CMSSM yaml file"
# ./gambit -f yaml_files/ColliderBit_CMSSM.yaml
# - name: Build Backends
# run: |
# echo "Building all Backends"
# cd BUILD
# #make -j $(( $(sysctl -n hw.ncpu)/2 )) backends
# make backends
#- name: Build standalones
# run: |
# echo "Test the building of the standalones"
Expand Down
2 changes: 2 additions & 0 deletions Elements/scripts/elements_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def main(argv):
# Extract flag for standalone
target = args[0]
isStandalone = 1 if "standalone" in target or "CBS" in target else 0
print("HEY Chris. I am in elements_extras.py or target: ", target) # TODO: Chris Chang. Debugging
print("isStandalone: " , isStandalone)

except :
print('Usage: elements_extras.py [flags] <isStandalone>')
Expand Down
6 changes: 3 additions & 3 deletions cmake/standalones.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
# Add some programs that use the GAMBIT physics libraries but not GAMBIT itself.
add_standalone(ExampleBit_A_standalone SOURCES ExampleBit_A/examples/ExampleBit_A_standalone_example.cpp MODULES ExampleBit_A)
add_standalone(CBS SOURCES ColliderBit/examples/solo.cpp MODULES ColliderBit DEPENDENCIES hepmc pybind11)
add_standalone(DarkBit_standalone_MSSM SOURCES DarkBit/examples/DarkBit_standalone_MSSM.cpp MODULES DarkBit)
add_standalone(DarkBit_standalone_ScalarSingletDM_Z2 SOURCES DarkBit/examples/DarkBit_standalone_ScalarSingletDM_Z2.cpp MODULES DarkBit)
add_standalone(DarkBit_standalone_WIMP SOURCES DarkBit/examples/DarkBit_standalone_WIMP.cpp MODULES DarkBit DEPENDENCIES pybind11)
add_standalone(DarkBit_standalone_MSSM SOURCES DarkBit/examples/DarkBit_standalone_MSSM.cpp MODULES DarkBit DEPENDENCIES FlavBit_standalone)
add_standalone(DarkBit_standalone_ScalarSingletDM_Z2 SOURCES DarkBit/examples/DarkBit_standalone_ScalarSingletDM_Z2.cpp MODULES DarkBit DEPENDENCIES FlavBit_standalone)
add_standalone(DarkBit_standalone_WIMP SOURCES DarkBit/examples/DarkBit_standalone_WIMP.cpp MODULES DarkBit DEPENDENCIES pybind11 FlavBit_standalone)
add_standalone(3bithit SOURCES DecayBit/examples/3bithit.cpp MODULES DecayBit SpecBit PrecisionBit)
add_standalone(FlavBit_standalone SOURCES FlavBit/examples/FlavBit_standalone_example.cpp MODULES FlavBit)

Expand Down
4 changes: 2 additions & 2 deletions contrib/heputils/include/HEPUtils/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace HEPUtils {
using CSeqBasePtr = std::shared_ptr<const FJNS::ClusterSequence>;

/// Hold the cluster sequences corresponding to jets, to keep them alive
std::map<const std::string, CSeqBasePtr> _cseqs;
std::map<std::string, CSeqBasePtr> _cseqs;

/// Missing momentum vector
P4 _pmiss;
Expand Down Expand Up @@ -460,7 +460,7 @@ namespace HEPUtils {
if (_cseqs.find(key) != _cseqs.end() && !_cseqs.empty()) {
throw std::runtime_error("Event::set_clusterseq() called for a non-empty jet collection");
}
_cseqs[key] = cseq;
_cseqs[key] = cseq;
}


Expand Down
Loading