Closed linehill closed 5 months ago
Hi @linehill could you share driver version?
I'm currently using Intel Compute Runtime 23.26.26690.22. The driver version is 1.3.26690 as reported by zeDriverGetProperties.
@linehill
I agree that ZE_RESULT_ERROR_UNSUPPORTED_FEATURE is not the best return value and it should be changed to ZE_RESULT_ERROR_MODULE_LINK_FAILURE.
However, looking at our code I see only one path where we return unsupported feature: https://github.com/intel/compute-runtime/blob/master/level_zero/core/source/module/module_imp.cpp#L1425-L1427C16
could you try to compile the module with "-library-compilation" flag?
could you try to compile the module with "-library-compilation" flag?
The flag solved the issue. Thanks!
Btw, should the -library-compilation
flag be documented in the Level Zero specification? It doesn't seem to be mentioned there.
you can find some documentation in our programmers guide: https://github.com/intel/compute-runtime/blob/master/programmers-guide/MODULE_SYMBOL_SUPPORT.md
zeModuleDynamicLink returns ZE_RESULT_ERROR_UNSUPPORTED_FEATURE for HD Graphics 530. The error code is not listed in https://spec.oneapi.io/level-zero/latest/core/api.html#zemoduledynamiclink. Is this intended behavior? Should the error code be listed in the function's description?