The following code that uses compound literals causes the AMD OpenCL compiler to crash.
platform_version: OpenCL 2.0 AMD-APP (1800.8)
platform_name: AMD Accelerated Parallel Processing
device_name: AMD Radeon HD 6700 Series
--------------------
typedef struct S
{
float x;
} S;
typedef struct B
{
S s;
float f;
} B;
__kernel void main_kernel()
{
S s;
B b = (B) { s, 10.f };
}
------------------------------------------------------------------
EDIT: Maybe my OpenCL drivers are out of date.
We just installed the latest Catalyst drivers, do they not update the AMD OpenCL drivers (e.g. OpenCL dll)?
Thanks for reporting this.
HD 6700 series cards are quite old and currently under legacy support model. So, no driver release is planned for this product. For more information, please find this page: Legacy
Anyway, I'll check the above code with recent drivers and report to the compiler team, if required.
The above code seems compiling fine with the latest drivers. Please use the latest driver and a compatible card.