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

[REQUEST] Support running GPU kernels with arrays in system memory on Grace Hopper #422

Open
shi-eric opened this issue Jan 9, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@shi-eric
Copy link
Contributor

shi-eric commented Jan 9, 2025

Description

It should be possible to mix-and-match arrays on Grace Hopper systems, e.g. CPU kernels can access arrays residing in GPU memory and vice versa. A runtime check requiring all arrays to be allocated on the same device as the kernel is one of the things preventing this from working:

warp/warp/context.py

Lines 4945 to 4949 in 211b962

# check device
if value.device != device:
raise RuntimeError(
f"Error launching kernel '{kernel.key}', trying to launch on device='{device}', but input array for argument '{arg_name}' is on device={value.device}."
)

There might be additional changes required for this capability to be performant.

Similarly, it should be possible to mix-and-match GPU arrays when peer access is enabled on peer-capable GPUs.

Context

Take advantage of platform features.

@shi-eric shi-eric added the enhancement New feature or request label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant