switch the return type for is_extension_available to bool (#2581)

from a review comment:
https://github.com/KhronosGroup/OpenCL-CTS/pull/2579#pullrequestreview-3463737641

We should use `bool` as the return type for `is_extension_available`,
not `int`.
This commit is contained in:
Ben Ashbaugh 2025-11-17 08:21:08 -08:00 committed by GitHub
parent e641de99a5
commit 9736cd0b67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ std::string get_device_info_string(cl_device_id device,
}
/* Determines if an extension is supported by a device. */
int is_extension_available(cl_device_id device, const char *extensionName)
bool is_extension_available(cl_device_id device, const char *extensionName)
{
std::string extString = get_device_extensions_string(device);
std::istringstream ss(extString);

View file

@ -26,7 +26,7 @@ std::string get_device_info_string(cl_device_id device,
cl_device_info param_name);
/* Determines if an extension is supported by a device. */
int is_extension_available(cl_device_id device, const char *extensionName);
bool is_extension_available(cl_device_id device, const char *extensionName);
/* Returns the version of the extension the device supports or throws an
* exception if the extension is not supported by the device. */