You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In OKL code, using a variable in the initializer statement of array declaration causes the parser to segfault during translation for the "launched" backends (CUDA/HIP/OpenCL/SYCL).
Reproducer
The following OKL code can be used to reproduce the error at the command line by calling occa translate -m CUDA f.okl.
@kernel f() {
@outer for (int o = 0; o < 1; ++o) {
@inner for (int i = 0; i < 1; ++i) {
int x = 0;
// int y[2] = {1,2}; //okay
int y[2] = {1,x}; //segfault
}
}
}
The text was updated successfully, but these errors were encountered:
Details
In OKL code, using a variable in the initializer statement of array declaration causes the parser to segfault during translation for the "launched" backends (CUDA/HIP/OpenCL/SYCL).
Reproducer
The following OKL code can be used to reproduce the error at the command line by calling
occa translate -m CUDA f.okl
.The text was updated successfully, but these errors were encountered: