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

Devel #2468

Merged
merged 13 commits into from
Aug 18, 2022
Merged

Devel #2468

merged 13 commits into from
Aug 18, 2022

Conversation

kmantel
Copy link
Collaborator

@kmantel kmantel commented Aug 17, 2022

No description provided.

dependabot bot and others added 13 commits August 12, 2022 13:38
…ctype structures

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
… map

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
According to the docs [0]:
"Users should not touch __builtins__; it is strictly an implementation detail.
Users wanting to override values in the builtins namespace should import the
builtins module and modify its attributes appropriately."

Since we only need the list of builtin names, use 'dir'.

Fixes running in pypy3.

[0] https://docs.python.org/3/reference/executionmodel.html#builtins-and-restricted-execution

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Use 'bytes' instead of 'bytearray' for RO view of ctype structures.
Use np.where instead of custom selection map.
User dir(builtins) instead of builtins .
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
…put out of "evaluate" function

The "evaluate" function input now matches that of the simulated
composition.
This reduces work for parallel execution of "evaluate"
and enables better use of fast "shared" memory when executed on a GPU.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
This enables using the same input preprocessing codepaths as
compiled composition run.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
…2466)

Prepares for future modification to pass multiple inputs for multiple simulation trials.
Avoids duplicate construction of "predicated input" in each evaluation.
Allows better use of shared memory in GPU execution.
* Update requirements.txt
…lation input (#2467)

The original code assumed 'run' variant would be called.
This is not the case for parallel evaluate that only needs
'run, simulation' variant, resulting in redundant code
generation and compiler calls.

Instead, use the 'evaluate' compiled function that provides the
same binary type of the argument at a different offset.

Tested by asserting that Python-{LLVM,PTX} tests only generate
'run, simulation' variant of the composition function.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
@github-actions
Copy link

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

No differences!

...

See CI logs for the full diff.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 84.429% when pulling ab6e911 on devel into dbdba04 on master.

@kmantel kmantel merged commit 86c70a9 into master Aug 18, 2022
@kmantel kmantel temporarily deployed to github-pages August 18, 2022 05:43 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants