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

Add support for device-side globals #24

Open
eyalroz opened this issue Jun 25, 2022 · 0 comments
Open

Add support for device-side globals #24

eyalroz opened this issue Jun 25, 2022 · 0 comments
Labels
enhancement New feature or request task

Comments

@eyalroz
Copy link
Owner

eyalroz commented Jun 25, 2022

CUDA supports device-side global variables (see here, for example). We should support running kernels which employ such variables. That means:

  1. Having the command-line and/or the kernel adapter specify what these are.
  2. Taking their value via the command-line (buffer-only? Buffer-or-scalar?)
  3. Registering them with the NVRTC program.
  4. Copying them "to symbol" before every run of the kernel. Or - copying them once and then making a copy if necessary, depending on whether the variable is read-only or not.
  5. Optionally copying the global variable values to to the host, to save as outputs (again - what about scalars?)

Also - need to look into these in OpenCL.

@eyalroz eyalroz added enhancement New feature or request task labels Jun 25, 2022
@eyalroz eyalroz changed the title Support device-side globals Add support for device-side globals Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request task
Projects
None yet
Development

No branches or pull requests

1 participant