fix: truncated invalid kernel reason message

IGC will add "invalid_kernel: uses-fp64-math" into kernel binary for fp64
unsupported platform. "uses-fp64-math" will be truncated to "uses" due to "-"
is not a valid identifier. It makes application can't get "uses-fp64-math"
through zeKernelGetSourceAttributes.

Related-To: NEO-7794

Signed-off-by: Pan Zhenjie <zhenjie.pan@intel.com>
This commit is contained in:
Pan, Zhenjie
2023-03-09 02:03:34 +00:00
committed by Compute-Runtime-Automation
parent 57e68624f3
commit ad49a6e3b0
2 changed files with 4 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ constexpr bool isAlphaNumeric(char c) {
}
constexpr bool isNameIdentifierCharacter(char c) {
return isAlphaNumeric(c) || ('_' == c);
return isAlphaNumeric(c) || ('_' == c) || ('-' == c);
}
constexpr bool isNameIdentifierBeginningCharacter(char c) {