[Triton] Triton generated kernel cannot be load correctly thru the L0 API.
- Dominant language
- MLIR
- Stars
- 156
- Forks
- 45
- Avg merge
- 4h 14m
- Merged PRs (30d)
- 22
Description
One very large Triton kernel cannot be load correctly thru the L0 API.
Got the error code `0x78000011` from L0 API `zeKernelCreate`.
```
ZE_RESULT_ERROR_INVALID_KERNEL_NAME = 0x78000011, ///< [Validation] kernel name is not found in the module
```
We double confirmed that the kernel name is used correctly same as the one in the SPIRV IR.
A simple c++ unit test for reproducing this issue.
https://github.com/intel-innersource/frameworks.ai.pytorch.ipex-gpu/tree/chengjun/test_dpcpp
You can use the following command to build and run the test under the root director of the code:
```Bash
mkdir build
cd ./build/
cmake ../ -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=dpcpp
make all
./test_void_kernel/triton_void_kernel
```
On ATSM platform result:
```
root device count: 2
compile kernel on device: Intel(R) Arc(TM) A770 Graphics
create kernel:triton__0d1d2d3d4d5d6d7d8d9d10d11d12d13d14d15d16d17d18d19d20d21d22d23d24d25d26d27d28d29d30d31d32d33d34d35d36d37d38d39d40d41d42d43d44d45d46d47d48d49d50d51d52d53d54d55d56d57d58d59d60d61d62d63d64d65d66d67d68d69d70d71d72d73d74d75d76d77d78d79d80d81d82d83d84d85d86d
L0 API error code:78000011
```
Contributor guide
Assessment
This issue has not been assessed yet.