-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL][CUDA] Add backend_version device property #5802
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
Conversation
template <> | ||
inline std::string get_device_info_host<info::device::backend_version>() { | ||
throw runtime_error( | ||
"Backend version feature is not supported on HOST device.", | ||
PI_INVALID_DEVICE); | ||
} | ||
|
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.
Do I understand correctly that it's only a stub and going to be modified in follow-up patch?
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.
Yes it is a stub, but we currently do not have plans for implementing it for other backends. I am not even sure what it should return for host, as it is supposed to be defined by backend specification.
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.
It could just throw an exception for host.
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.
Just a minor nit, but otherwise it LGTM.
@smaslov-intel - Do we have a plan for what to return in the L0 backend for this query?
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!
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
template <> | ||
inline std::string get_device_info_host<info::device::backend_version>() { | ||
throw runtime_error( | ||
"Backend version feature is not supported on HOST device.", | ||
PI_INVALID_DEVICE); | ||
} | ||
|
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.
It could just throw an exception for host.
Adds
backend_version
device property that can be queried viedevice.get_info()
and implements it for CUDA to return compute capability.