-
Notifications
You must be signed in to change notification settings - Fork 37
New interface #764
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
Merged
Merged
New interface #764
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a6731bd
Merge branch 'fix_mirror'
oliviermattelaer d644235
stupid fix for a symlink/git issue
oliviermattelaer 9fc9873
fix launch issue for cudacpp, run_card, some cleaning and compilation…
oliviermattelaer 5b22a92
fixing issue of stefan with nprocesses>1
oliviermattelaer 3fbf7b1
fix symmetry factor + missing file
oliviermattelaer a062c0f
fix unary operator
oliviermattelaer 216ed18
fix DY issue from upstream MG5
oliviermattelaer d7aaa54
in PLUGIN_UFOModelConverter overwrite teh prepare_couplings function
roiser 60b5f2a
fix the ordering of the running couplings such that the independent o…
roiser c839c47
update to version supporting vector_size to be setup via the run_card
oliviermattelaer 0dd8542
Merge branch 'master' into new_interface
oliviermattelaer 5b594c7
fix compilation issue
oliviermattelaer 22fd349
allowing run_card to not include the vector_size (then use the value …
oliviermattelaer f27f44d
adding shortcut for the SIMD/GPU mode
oliviermattelaer 87afdc2
change default gpu size to 16k
oliviermattelaer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule mg5amcnlo
updated
3 files
| +11 −1 | madgraph/interface/launch_ext_program.py | |
| +1 −1 | madgraph/iolibs/group_subprocs.py | |
| +2 −1 | madgraph/various/banner.py |
This file contains hidden or 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
38 changes: 38 additions & 0 deletions
38
epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/launch_plugin.py
This file contains hidden or 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,38 @@ | ||
|
|
||
| import madgraph.various.misc as misc | ||
| import madgraph.interface.extended_cmd as extended_cmd | ||
| import logging | ||
|
|
||
| logger = logging.getLogger('cmdprint') # for stdout | ||
|
|
||
| try: | ||
| import madgraph | ||
| except: | ||
| import internal.madevent_interface as madevent_interface | ||
| else: | ||
| import madgraph.interface.madevent_interface as madevent_interface | ||
|
|
||
| class CPPMEInterface(madevent_interface.MadEventCmdShell): | ||
|
|
||
| def compile(self, *args, **opts): | ||
| """ """ | ||
| import multiprocessing | ||
| if not self.options['nb_core'] or self.options['nb_core'] == 'None': | ||
| self.options['nb_core'] = multiprocessing.cpu_count() | ||
|
|
||
| if args and args[0][0] == 'madevent' and hasattr(self, 'run_card'): | ||
| cudacpp_backend = self.run_card['cudacpp_backend'] # the default value is defined in banner.py | ||
| logger.info("Building madevent in madevent_interface.py with '%s' matrix elements"%cudacpp_backend) | ||
| if cudacpp_backend == 'FORTRAN': | ||
| args[0][0] = 'madevent_fortran_link' | ||
| elif cudacpp_backend == 'CPP': | ||
| args[0][0] = 'madevent_cpp_link' | ||
| elif cudacpp_backend == 'CUDA': | ||
| args[0][0] = 'madevent_cuda_link' | ||
| else: | ||
| raise Exception("Invalid cudacpp_backend='%s': only 'FORTRAN', 'CPP', 'CUDA' are supported") | ||
| return misc.compile(nb_core=self.options['nb_core'], *args, **opts) | ||
| else: | ||
| return misc.compile(nb_core=self.options['nb_core'], *args, **opts) | ||
|
|
||
| MEINTERFACE = CPPMEInterface |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably related to #872.
Note that nprocesses=2 was introduced back into cudacpp by PR #754.
I will propose to undo both these changes (from 754 and this 764) to fix #872 in PR #935