mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 00:39:03 +00:00
SPIR-V handling on different OpenCL devices version
Example usage for bruteforce and spirv_new
This commit is contained in:
committed by
Alastair Murray
parent
d643dc5399
commit
3730bce4e8
@@ -34,7 +34,7 @@ public:
|
||||
bool operator>=(const Version& rhs) const { return to_int() >= rhs.to_int(); }
|
||||
bool operator==(const Version& rhs) const { return to_int() == rhs.to_int(); }
|
||||
int to_int() const { return m_major * 10 + m_minor; }
|
||||
std::string to_string() const
|
||||
std::string to_string() const
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << m_major << "." << m_minor;
|
||||
@@ -135,7 +135,10 @@ extern cl_device_type GetDeviceType( cl_device_id );
|
||||
// is the only device available, the SAME device is returned, so check!
|
||||
extern cl_device_id GetOpposingDevice( cl_device_id device );
|
||||
|
||||
Version get_device_spirv_il_version(cl_device_id device);
|
||||
bool check_device_spirv_il_support(cl_device_id device);
|
||||
void version_expected_info(const char * test_name, const char * api_name, const char * expected_version, const char * device_version);
|
||||
test_status check_spirv_compilation_readiness(cl_device_id device, bool force = false);
|
||||
|
||||
|
||||
extern int gFlushDenormsToZero; // This is set to 1 if the device does not support denorms (CL_FP_DENORM)
|
||||
|
||||
Reference in New Issue
Block a user