Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable parallel world in anchored simulation #1786

Closed
wants to merge 40 commits into from

Conversation

maciacco
Copy link
Contributor

@maciacco maciacco commented Nov 5, 2024

@mconcas @sawenzel I added the parallel world configurables in the python and bash scripts for the anchored workflow creation. I also added a variable in the pp test script to enable the parallel geometry navigation

Copy link

github-actions bot commented Nov 5, 2024

REQUEST FOR PRODUCTION RELEASES:
To request your PR to be included in production software, please add the corresponding labels called "async-" to your PR. Add the labels directly (if you have the permissions) or add a comment of the form (note that labels are separated by a ",")

+async-label <label1>, <label2>, !<label3> ...

This will add <label1> and <label2> and removes <label3>.

The following labels are available
async-2023-pbpb-apass4
async-2023-pp-apass4
async-2024-pp-apass1
async-2022-pp-apass7
async-2024-pp-cpass0
async-2024-PbPb-cpass0
async-2024-PbPb-apass1
async-2024-ppRef-apass1

@@ -312,6 +312,7 @@ def main():
parser.add_argument("-tf", type=int, help="number of timeframes per job", default=1)
parser.add_argument("--ccdb-IRate", type=bool, help="whether to try fetching IRate from CCDB/CTP", default=True)
parser.add_argument("--trig-eff", type=float, dest="trig_eff", help="Trigger eff needed for IR", default=-1.0)
parser.add_argument("-enable-parallel-world", type=int, dest="enable_parallel_world", help="Enable parallel geometry", default=0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be needed. We can already pass simulation config key values from the outside.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your review, I removed this in the latest commit

Copy link
Contributor

@sawenzel sawenzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In principle, we can pass config key values from the outside using the -confKey of o2dpg_sim_workflow.py;

Before doing bigger changes such as in this PR, could you please check if this works or what are the show-stoppers with such approach?

@maciacco
Copy link
Contributor Author

@sawenzel thanks for your comment, I modified the implementation by forwarding the parallel world configuration to o2dpg_sim_workflow.py as you suggested. This gives the same results as before in the workflow creation

@@ -216,6 +216,7 @@ baseargs="-tf ${NTIMEFRAMES} --split-id ${SPLITID} --prod-split ${PRODSPLIT} --c
remainingargs="-seed ${SEED} -ns ${NSIGEVENTS} --include-local-qc --pregenCollContext"
remainingargs="${remainingargs} -e ${ALIEN_JDL_SIMENGINE} -j ${NWORKERS}"
remainingargs="${remainingargs} -productionTag ${ALIEN_JDL_LPMPRODUCTIONTAG:-alibi_anchorTest_tmp}"
remainingargs="${remainingargs} -confKey \"GeometryManagerParam.useParallelWorld=${ENABLE_PARALLEL_WORLD};GeometryManagerParam.usePwGeoBVH=${ENABLE_PARALLEL_WORLD};GeometryManagerParam.usePwCaching=${ENABLE_PARALLEL_WORLD}\""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not ideal. Someone might give -confKey from the outside ... and this will override the external choice of parameters.

if [ ! "${CCDB_RC}" == "0" ]; then
echo_error "Problem during CCDB prefetching of ${CCDBOBJECTS_IDEAL_MC}. Exiting."
exit ${CCDB_RC}
if [ "${ENABLE_PARALLEL_WORLD}" == "0" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please explain a bit what these changes are doing/achieving?

@alcaliva alcaliva enabled auto-merge (squash) February 12, 2025 09:07
@alcaliva
Copy link
Collaborator

Hi all,
there was no progress over the last few weeks. What is the status of the review? We need this PR to reproduce the dips in the phi distribution in data. @sawenzel, could you have a look?

@maciacco
Copy link
Contributor Author

hi @alcaliva @sawenzel I got back on this in the past few days, I will update on the required checks in the coming days

jackal1-66 and others added 15 commits February 13, 2025 16:52
…#1760)

* Allow to generate events for event-pool usage (no vertex applied + kinematic merging)
* Example script demonstrating simple event pool creation and reading events from pool

https://its.cern.ch/jira/browse/O2-5216
* HF Cocktail: rap range as in Run2

* LF Cocktail: update decaytable
* PWGLF: Change Xi/Om spectra for injection
Script which helps to determine the complete list
of commits so that a given commit can be
cherry-picked without problems.
…p#1780)

* Set default firstOrbit to 256

just a preventive measure in case someone is using --early-orbits
(avoid to get negative).
In the worst case we skip few timeframes ... and in any case not
a relevant change for anchored MC.

* Better SOR determination

Fixes a problem with wrong/inconsistent timestamps
for some runs (when not using anchoring).

Now consistent with other code in O2.
* DPMJET and other new processes

* Changing suffix since this is not a normal ini file for o2sim
* Adding Upsilon Generator

* fixing ini fil bug

* Fix the test

---------

Co-authored-by: Lucamicheletti93 <[email protected]>
mbroz84 and others added 18 commits February 13, 2025 16:52
* Disable dpmjet process and add few Tau processes

* Adjusting paths to use
* remove lines which inhibit transport at large eta

* fix Pythia generator ambiguity
* fix typo

* fix typo 2

* fix typo 3
* Created EPOS4 external example generator

* Updated center-of-mass energy of EPOS4 example

* Implemented GeneratorEPOS4 test

* Testing fix for EPOS4 external

* Revert "Implemented GeneratorEPOS4 test"

This reverts commit e0b88b1.

* Reapply "Implemented GeneratorEPOS4 test"

This reverts commit 53671e8.

* Revert "Testing fix for EPOS4 external"

This reverts commit 920cf42.

* Check for LIBDIR

* Added EPO4 as env variable in external script

* Explicit definition of EPOS4 version

* Reorganised and improved fix for CI
include mandatory interactionRate argument
…Group#1813)

* Update generator_pythia8_extraStrangeness.C

* Update generator_pythia8_syntheFlowXi.C
* Rho prime process

* Decay in SL
auto-merge was automatically disabled February 13, 2025 15:58

Head branch was pushed to by a user without write access

@maciacco maciacco closed this Feb 13, 2025
@maciacco
Copy link
Contributor Author

@sawenzel @alcaliva I created a new PR on this as I made a mistake in the branch merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.