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

Transition to arraycontext #56

Draft
wants to merge 28 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6e3e42f
deprecate DeviceDataRecord
alexfikl Jun 20, 2022
be48b22
port translation_classes to arraycontext
alexfikl Jun 20, 2022
959d3a7
port rotation_classes to arraycontext
alexfikl Jun 20, 2022
bac678d
port area_query to arraycontext
alexfikl Jun 20, 2022
ca41e31
port bounding_box to array_context
alexfikl Jun 21, 2022
4355c48
port fmm to array_context
alexfikl Jun 21, 2022
779a377
port traversal to arraycontext
alexfikl Jun 21, 2022
f2140ca
port tree to arraycontext
alexfikl Jun 21, 2022
e6b8c81
port tools to arraycontext
alexfikl Jun 22, 2022
c0d02d4
port tree_build to arraycontext
alexfikl Jun 22, 2022
5d7027d
port tree_build_kernels to arraycontext
alexfikl Jun 22, 2022
c8bd1a2
port pyfmmlib_integration to arraycontext
alexfikl Jun 23, 2022
34cd81c
port cost to arraycontext
alexfikl Jun 23, 2022
003d0e0
port distributed to arraycontext
alexfikl Jun 26, 2022
c1a9c7f
add tests for DeviceDataRecord based on arraycontext
alexfikl Jun 22, 2022
cdee1ac
port test_traversal to arraycontext
alexfikl Jun 22, 2022
e112f17
port test_tree to arraycontext
alexfikl Jun 23, 2022
2b0bd5f
port test_fmm to arraycontext
alexfikl Jun 23, 2022
994a359
port test_cost_model to arraycontext
alexfikl Jun 23, 2022
53e7c28
port test_distributed to arraycontext
alexfikl Jun 26, 2022
f50c1d9
port examples to arraycontext
alexfikl Jun 26, 2022
8efb304
remove ImmutableHostDeviceArray
alexfikl Jun 26, 2022
0aee298
docs: add arraycontext
alexfikl Jun 24, 2022
4ca76b6
update fmm interface for sumpy
alexfikl Sep 7, 2022
4024531
rip out timing collection
alexfikl Sep 23, 2022
5b14fe1
ruff: mark arraycontext as first-party
alexfikl Jul 19, 2024
0daa496
point ci to modified downstreams
alexfikl Aug 2, 2022
36edb03
test: wrap meshmode array context
alexfikl Jul 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ jobs:
curl -L -O https://tiker.net/ci-support-v0
. ci-support-v0

if [[ "$DOWNSTREAM_PROJECT" == "pytential" && "$GITHUB_HEAD_REF" == "rename-nterms" ]]; then
DOWNSTREAM_PROJECT=https://github.com/gaohao95/pytential.git@rename-nterms
if [[ "$GITHUB_HEAD_REF" == "towards-array-context" ]]; then
DOWNSTREAM_PROJECT=https://github.com/alexfikl/${DOWNSTREAM_PROJECT}.git@towards-array-context
fi
test_downstream "$DOWNSTREAM_PROJECT"

Expand Down
4 changes: 0 additions & 4 deletions .pylintrc-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@

- arg: extension-pkg-whitelist
val: pyfmmlib

# Needed for boxtree.tools
- arg: init-hook
val: import sys; sys.setrecursionlimit(2000)
Comment on lines -7 to -9
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what in boxtree.tools was overworking pylint, but it doesn't seem necessary anymore (?).

8 changes: 4 additions & 4 deletions boxtree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@
two arrays, one whose name ends in ``_starts``, and another whose
name ends in ``_lists``. For example,
suppose we would like to find the colleagues of box #17 using
:attr:`boxtree.traversal.FMMTraversalInfo.colleagues_starts`
:attr:`boxtree.traversal.FMMTraversalInfo.same_level_non_well_sep_boxes_starts`
and
:attr:`boxtree.traversal.FMMTraversalInfo.colleagues_lists`.
:attr:`boxtree.traversal.FMMTraversalInfo.same_level_non_well_sep_boxes_lists`.

The following snippet of code achieves this::

ibox = 17
start, end = colleagues_starts[ibox:ibox+2]
ibox_colleagues = colleagues_lists[start:end]
start, end = same_level_non_well_sep_boxes_starts[ibox:ibox+2]
ibox_colleagues = same_level_non_well_sep_boxes_lists[start:end]

This indexing scheme has the following properties:

Expand Down
Loading
Loading