Hello everyone.
This simple Kernel:
struct foo{
float a;
};
__kernel
void asdf(__global float* a) {
struct foo asdf = (struct foo){1};
a[get_global_id(0)] = asdf.a;
}
crashes clBuildProgram and the KernelAnalyzer2 for me, but only if the struct foo is initialized with a non zero value. The type of foo.a does not seem to matter, even bool crashes them. To make it clear:
struct foo{
float a;
};
__kernel
void asdf(__global float* a) {
struct foo asdf = (struct foo){0};
a[get_global_id(0)] = asdf.a;
}
and
struct foo{
float a;
};
__kernel
void asdf(__global float* a) {
float b = 1;
struct foo asdf = (struct foo){b};
a[get_global_id(0)] = asdf.a;
}
do not cause a crash.
I am using the Catalyst Driver 13.4 for my Radeon HD 7870 on Windows 7.
The KernelAnalyzer2 is at Version 2.1.880.
I hope this is the right place to post this
sylze
Had same problem here: http://devgurus.amd.com/thread/166622
Well, i guess it's good to know that it appears on Windows as well as on Linux then.
Also I remember reading "UNREACHABLE executed!" just like you mentioned in your thread, but can't reproduce it now.
Hi
I am able to reproduce the same here.. I will file bug report.