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

JIT parameterization using protobuf #76

Open
JaeseungYeom opened this issue Feb 17, 2021 · 1 comment
Open

JIT parameterization using protobuf #76

JaeseungYeom opened this issue Feb 17, 2021 · 1 comment
Assignees
Labels
good first issue Good for newcomers

Comments

@JaeseungYeom
Copy link
Collaborator

We already a number of options to pass to JIT module, and plain to have more.
This is a good time to make transition to protobuf based parameterization.

  • Begin with src/generate_cxx_code.cpp
  • Add a message schema to src/proto/wcs_params.proto
  • Modify the examples under src/proto/test*
  • Add a parameter structure under src/params
  • Add functions to populate the structure in src/proto/wcs_paraps.cpp from user-provided prototext
  • Integrate the metho into src/generate_cxx_code.cpp (look at the example in src/ssa_partition.cpp
  • Apply it to src/reaction_network/network.cpp
@JaeseungYeom
Copy link
Collaborator Author

JaeseungYeom commented Mar 19, 2021

options to include

  • temporary directory where the generated code are written into
  • path of the library file if different from the default
    • same as the model file name except that the extension is .so under the same directory of the model file
  • number of compiling threads
  • whether to remove each generated source file as soon as it is used
  • whether to clean up generated source files and object files
  • size of each translation unit (i.e., the number of rate functions per rate formula source file)
  • whether to generate the shared library if it does not already exist
  • whether to save logfile for stdout and stderr
    • if so, names of the file

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

No branches or pull requests

2 participants