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

Enhance support for GPU-resident data #2460

Open
FabioLuporini opened this issue Sep 27, 2024 · 0 comments
Open

Enhance support for GPU-resident data #2460

FabioLuporini opened this issue Sep 27, 2024 · 0 comments
Labels

Comments

@FabioLuporini
Copy link
Contributor

Currently the user can pass references to GPU-resident data to a Function/TimeFunction:

https://github.com/devitocodes/devito/blob/master/devito/data/allocators.py#L340

However, when one wants to interface a Devito Operator with something else like PyTorch, which has GPU-resident arrays that need no copy from/to the host, it'd be way more convenient to also support the likes of CuPy arrays as well. This would allow the user to e.g. treat/initialize/modify u.data the exact same way, irrespective of whether the data is host- or GPU-resident. GPU-resident arrays are useful because it spare host memory, and in single-node multi-GPU nodes the save could be significant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant