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

[SYCL] Make 'supportAcc' a template variable in getSyclDeviceTypeMap #12775

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

uditagarwal97
Copy link
Contributor

The output of getSyclDeviceTypeMap() is different for SYCL_DEVICE_ALLOWLIST and ONEAPI_DEVICE_SELECTOR. However, currently, we return a reference to a 'static const' type, which causes calls to getSyclDeviceTypeMap() return the same value, irrespective of 'supportAcc'. This results in several test failures.

This PR makes 'supportAcc' a template parameter instead.

@uditagarwal97
Copy link
Contributor Author

@intel/llvm-gatekeepers the PR is ready!

@sarnex sarnex merged commit ef6887f into intel:sycl Feb 21, 2024
11 checks passed
@uditagarwal97 uditagarwal97 deleted the udit_remove_static branch March 21, 2024 19:58
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