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

llvm: Reduce overhead of compiled parameters #2765

Merged
merged 4 commits into from
Aug 8, 2023

Conversation

jvesely
Copy link
Collaborator

@jvesely jvesely commented Aug 8, 2023

Use get_random_state_ptr helper in GridSearch function instead of accessing the random state directly.
The helper handles reseeding the random state if the seed has changed.
Remove unneeded parameters from compiled structures; read-only parameters with custom getters are user-only and not used in compilation.

The builder context helpers reset random state if the seed has changed.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
…rs in compiled parametrrs

The only provide user interaction, similar to Shared and Function
parameters.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
"random_draw", DriftDiffusionIntegrator; only used as a helper for mdf tests.
"key_size", "val_size", "max_entries", DictionaryMemory; structural parameters
"per_item", TransferFunction; structural parameter
"randomization_dimension", GridSearch; user only parameter, not used in compiled code
"save_values", "save_samples", GridSearch;  structural parameters not used in compiled code
"max_iterations", GridSearch; not used by compilation, the number of iterations is known in advance

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
… for cost and intensity parameters

These are output parameters that receive new values and can have history
enabled.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
@jvesely jvesely added the compiler Runtime Compiler label Aug 8, 2023
@github-actions
Copy link

github-actions bot commented Aug 8, 2023

This PR causes the following changes to the html docs (ubuntu-latest-3.7-x64):

No differences!

...

See CI logs for the full diff.

@jvesely jvesely merged commit 95cd326 into PrincetonUniversity:devel Aug 8, 2023
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Runtime Compiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant