Skip to content

Feectools with cupy - #74

Merged
max-models merged 52 commits into
devel-tinyfrom
feectools-with-cupy
Aug 7, 2026
Merged

Feectools with cupy#74
max-models merged 52 commits into
devel-tinyfrom
feectools-with-cupy

Conversation

@max-models

@max-models max-models commented Aug 4, 2026

Copy link
Copy Markdown
Member

See corresponding PR in struphy here: struphy-hub/struphy#93

Wait for #44 to merge first

max-models and others added 30 commits October 10, 2025 14:44
# Conflicts:
#	feectools/core/bsplines.py
#	feectools/ddm/blocking_data_exchanger.py
#	feectools/ddm/tests/test_cart_1d.py
#	feectools/ddm/tests/test_cart_2d.py
#	feectools/ddm/tests/test_cart_3d.py
#	feectools/feec/global_geometric_projectors.py
#	feectools/fem/tensor.py
#	feectools/linalg/basic.py

Co-authored-by: max-models <181350288+max-models@users.noreply.github.com>
@max-models
max-models marked this pull request as draft August 4, 2026 09:46
@spossann

spossann commented Aug 6, 2026

Copy link
Copy Markdown
Member

@max-models is this ready?

@max-models

Copy link
Copy Markdown
Member Author

@max-models is this ready?

No, there are still tests in struphy which are failing. So I need to do a few more iterations before merging this.

You can merge your branches first.

@spossann

spossann commented Aug 6, 2026

Copy link
Copy Markdown
Member

@max-models is this ready?

No, there are still tests in struphy which are failing. So I need to do a few more iterations before merging this.

You can merge your branches first.

I can wait. The error in the test seems to be related to the move of Pyccelkernel into cunumpy

@max-models

Copy link
Copy Markdown
Member Author

@max-models is this ready?

No, there are still tests in struphy which are failing. So I need to do a few more iterations before merging this.
You can merge your branches first.

I can wait. The error in the test seems to be related to the move of Pyccelkernel into cunumpy

Yes, but also the tests don't pass locally when running with the cupy backend yet... Working on it

@max-models

Copy link
Copy Markdown
Member Author

@spossann struphy tests are finished now.

@max-models
max-models marked this pull request as ready for review August 7, 2026 09:32
@max-models
max-models requested a review from spossann August 7, 2026 09:32
@max-models
max-models merged commit e5c084a into devel-tiny Aug 7, 2026
8 checks passed
@max-models
max-models deleted the feectools-with-cupy branch August 7, 2026 10:01
@max-models
max-models restored the feectools-with-cupy branch August 7, 2026 10:02
@max-models
max-models deleted the feectools-with-cupy branch August 7, 2026 10:03
spossann pushed a commit to struphy-hub/struphy that referenced this pull request Aug 7, 2026
Redo of #25

See corresponding PR in feectools here:
struphy-hub/feectools#74

Notes:

This MR is still pointing towards `318`, but it will be merged into
devel once finished (which will be after 318 has already been merged).

To run on my PC, I still need to do:

```
export ARRAY_BACKEND=cupy
export CUDA_PATH=/usr/local/cuda
export PATH=$CUDA_PATH/bin:$PATH
```

I am then running the Vlasov standard parameters

```
struphy params Vlasov -y
python params_Vlasov.py
```

To do

- [ ] Fix the need for setting CUDA path
- [ ] We have many cases of `from numpy import xyz`, this makes sense in
pyccelized kernels since we will not be allowed to use cupy there. But
in my current testing, but otherwise not.
- [ ] When calling a pyccelized kernel while using cupy, we can convert
the arrays to numpy arrays, they should also be converted back to cupy
arrays afterwards.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: max-models <181350288+max-models@users.noreply.github.com>
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.

3 participants