mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Dynamically Select -cl-std Option (#879)
* Dynamically select the `-cl-std` option on the basic `sizeof` and `wg_barrier` tests to be one of `CL1.X`, `CL2.0` or `CL3.0`. Use the most recent CL C standard supported on the device.
This commit is contained in:
@@ -173,4 +173,12 @@ cl_device_fp_config get_default_rounding_mode( cl_device_id device );
|
||||
/* Prints out the standard device header for all tests given the device to print for */
|
||||
extern int printDeviceHeader( cl_device_id device );
|
||||
|
||||
// Gets the latest (potentially non-backward compatible) OpenCL C version
|
||||
// supported by the device.
|
||||
Version get_device_cl_c_version(cl_device_id device);
|
||||
|
||||
// Gets the maximum universally supported OpenCL C version in a context, i.e.
|
||||
// the OpenCL C version supported by all devices in a context.
|
||||
Version get_max_OpenCL_C_for_context(cl_context context);
|
||||
|
||||
#endif // _kernelHelpers_h
|
||||
|
||||
Reference in New Issue
Block a user