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
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. */