Replies: 2 comments 1 reply
-
I think that passing a (list of) instance names would be best here. It would be straightforward to record this in the |
Beta Was this translation helpful? Give feedback.
-
when rethinking about this topic I wondered if it would make sense to use a config file to specify reactor-specific code generation. Imagine a program with a good number of reactors (say 10), it would be less tedious if the user can specify in a file what to compile or what not to compile instead of using command line arguments. I am imagining the user using a compiler flag (ex. "--config") to pass in the config file. I was thinking in the context of distributed federated execution where each machine only needs to compile the subset of the reactors in the lf file that need to run on that machine, which I imagine the subset being relatively small compared to the total number of reactors. |
Beta Was this translation helpful? Give feedback.
-
There are two approaches to distributed executions that I can think of:
After discussing with @Soroosh129 and @lhstrh, we agree that approach (2) would be more robust and modular in the long run because there would be less edge cases outside of lfc to handle. However, currently, calling lfc on a .lf file would generate code for all the reactors in the .lf file.
This implies that the code generation time for approach (2) would be exponentially higher than approach (1).
This problem can be solved if the user can pass a command line argument to lfc indicating the index or name(s) of the reactor and limit code generation to those reactors.
Beta Was this translation helpful? Give feedback.
All reactions