mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Test fix - Test computeinfo should know each existing OCL version (#368)
This commit is contained in:
committed by
Kévin Petit
parent
543cbe769c
commit
c6f515c0d3
@@ -605,6 +605,10 @@ int parseVersion( char const * str, version_t * version )
|
||||
version->major = 1;
|
||||
version->minor = 2;
|
||||
rc = 0;
|
||||
} else if ( strncmp( str, "OpenCL 1.0", 10 ) == 0 && ( str[ 10 ] == 0 || str[ 10 ] == ' ' ) ) {
|
||||
version->major = 1;
|
||||
version->minor = 0;
|
||||
rc = 0;
|
||||
} else if ( strncmp( str, "OpenCL 1.1", 10 ) == 0 && ( str[ 10 ] == 0 || str[ 10 ] == ' ' ) ) {
|
||||
version->major = 1;
|
||||
version->minor = 1;
|
||||
@@ -617,6 +621,10 @@ int parseVersion( char const * str, version_t * version )
|
||||
version->major = 2;
|
||||
version->minor = 1;
|
||||
rc = 0;
|
||||
} else if ( strncmp( str, "OpenCL 2.2", 10 ) == 0 && ( str[ 10 ] == 0 || str[ 10 ] == ' ' ) ) {
|
||||
version->major = 2;
|
||||
version->minor = 2;
|
||||
rc = 0;
|
||||
} else {
|
||||
log_error( "ERROR: Unexpected version string: `%s'.\n", str );
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user