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

ocl: discover device properties once and simplified setting up WG-size #775

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

hfp
Copy link
Member

@hfp hfp commented Mar 26, 2024

  • Store cl_device_id in c_dbcsr_acc_opencl_device_t and rely on it (instead of querying it repeatedly).
  • Make maximum size of work-group (WG) and preferred multiple available as part of device structure.
  • Discover subgroups. Avoid some compile-time decision (OpenCL 3.0).
  • Simplify handling WG-size (and SG-size).
  • Code cleanup (_DEBUG).

* Store cl_device_id in c_dbcsr_acc_opencl_device_t and rely on it (instead of querying it repeatedly).
* Make maximum size of work-group (WG) and preferred multiple available as part of device structure.
* Discover subgroups. Avoid some compile-time decision (OpenCL 3.0).
* Simplify handling WG-size (and SG-size).
* Code cleanup (_DEBUG).
@hfp hfp merged commit 6db5b28 into cp2k:develop Mar 26, 2024
23 checks passed
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.

1 participant