-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Implement sycl_ext_intel_device_architecture for AOT #7008
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] Implement sycl_ext_intel_device_architecture for AOT #7008
Conversation
/verify with intel/llvm-test-suite#1322 |
/verify with intel/llvm-test-suite#1322 |
sycl/include/sycl/ext/intel/experimental/device_architecture.hpp
Outdated
Show resolved
Hide resolved
sycl/include/sycl/ext/intel/experimental/device_architecture.hpp
Outdated
Show resolved
Hide resolved
sycl/unittests/Extensions/DeviceArchitectureOneArchSelected.cpp
Outdated
Show resolved
Hide resolved
sycl/unittests/Extensions/DeviceArchitectureOneArchSelected.cpp
Outdated
Show resolved
Hide resolved
sycl/include/sycl/ext/intel/experimental/device_architecture.hpp
Outdated
Show resolved
Hide resolved
sycl/unittests/Extensions/DeviceArchitectureOneArchSelected.cpp
Outdated
Show resolved
Hide resolved
sycl/unittests/Extensions/DeviceArchitectureOneArchSelected.cpp
Outdated
Show resolved
Hide resolved
sycl/include/sycl/ext/intel/experimental/device_architecture.hpp
Outdated
Show resolved
Hide resolved
sycl/include/sycl/ext/intel/experimental/device_architecture.hpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, assuming Andrei's remaining comments are applied in a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
fnTrue(args...); | ||
return if_architecture_helper<false>{}; | ||
} else { | ||
(void)fnTrue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(void)fnTrue; | |
std::ignore = fnTrue; |
Nit; just to be a little more modern.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, thanks! Will change it in another patch
@dm-vodopyanov, there is post commit issue on windows, can you have a look? https://github.com/intel/llvm/actions/runs/3298798512/jobs/5441377909 |
The spec was partially implemented in intel#7008
Spec: https://github.com/intel/llvm/blob/7f2b17ed5b54271fb115cad02d40bae98b2c0454/sycl/doc/design/DeviceIf.md
Tests: intel/llvm-test-suite#1322