EGX Parallel Execution [message #1855923] |
Wed, 09 November 2022 19:39  |
Eclipse User |
|
|
|
I have an EGX module that has 958 rules. 74 of the rules use the transform parameter to execute over multiple model elements and the remaining 884 rules just execute once each. I am using the EGL Ant task to run this module. I have added the @parallel annotation to all of the rules, however, it appears to only be executing the same rule on different elements in parallel but each rule is still run sequentially. Due to the large number of single use rules, the total module execution is quite slow. Is there any way to parallelise the execution of the single use rules so that multiple rules are run at the same time (hopefully speeding up the total execution time)?
[Updated on: Wed, 09 November 2022 19:39] by Moderator
|
|
|
|
Re: EGX Parallel Execution [message #1855954 is a reply to message #1855949] |
Fri, 11 November 2022 04:35  |
Eclipse User |
|
|
|
Hi again,
My bad. To make these rules run in parallel too, you'll need to use the EgxModuleParallelGenerationRuleAtoms execution engine as follows.
<project default="main">
<target name="main">
<epsilon.egl src="parallel.egx" moduleimplementation="org.eclipse.epsilon.egl.concurrent.EgxModuleParallelGenerationRuleAtoms"/>
</target>
</project>
If you use this engine, you don't need to include @parallel annotations as all rule instances will be run in parallel by default.
Thanks,
Dimitris
|
|
|
Powered by
FUDForum. Page generated in 0.11459 seconds