Altera_Forum
Honored Contributor
8 years agoCannot find specific errors of kernel compilation
I'm trying to compile a specific kernel I've written myself. The compilation fails while it tries to generate the hardware implementation. It also fails after one hour processing, with no reason. It's most probably cannot synthesis the model, but I cannot find any related log file explains what exactly is happening. Here is my kernel:
__kernel void Test51(__global double *data, __global double *rands, int index, int rand_max){
double2 temp;
int gid = get_global_id(0);
temp = data;
temp = (double) rands * temp;
temp = (double) rands * temp;
temp = (double) rands * temp;
temp = (double) rands * temp;
temp = (double) rands * temp;
temp = (double) rands * temp;
temp = (double) rands * temp;
.....
temp = (double) rands * temp;
temp = (double) rands * temp;
temp = (double) rands * temp;
temp = (double) rands * temp;
temp = (double) rands * temp;
temp = (double) rands * temp;
temp = (double) rands * temp;
data = temp.s0;
}
I've tried so hard to understand what exactly is the reason for failure but cannot figure out anything. Can anyone help me with this issue?