inducer / inducer/grudge

Should global reductions `compile` internally?

Open
#274 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14
Forks
18
Avg merge
26m
Merged PRs (30d)
1

Description

Global reductions such as `nodal_min` must compute and evaluate the local reduction before passing the result to MPI. The code for these local reductions is not compiled, so It seems like they would incur the cost of generating the kernel each time the reduction is called? Should they perhaps have a memoized `compile` on the inside similar to `compiled_lsrk45_step` instead?

(Not sure if this has any real performance impact, I just noticed it while discussing with @MTCam and thought it was worth mentioning.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.