-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
CUDADPC++HIPOKLOpenCLbugUse this label when reporting bugs!Use this label when reporting bugs!parserpriorityIssues that are high priority for downstream projectsIssues that are high priority for downstream projects
Description
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
.
@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
}
}
}
Metadata
Metadata
Assignees
Labels
CUDADPC++HIPOKLOpenCLbugUse this label when reporting bugs!Use this label when reporting bugs!parserpriorityIssues that are high priority for downstream projectsIssues that are high priority for downstream projects