mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
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:
committed by
Compute-Runtime-Automation
parent
57e68624f3
commit
ad49a6e3b0
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user