Forum Discussion
Altera_Forum
Honored Contributor
9 years agocan't post the original version but it is something like this
void function1( my_type * arg_1, my_type_2 *arg_2){
//normale opencl c code
}
__kernel kernel_1(__global my_type * arg_1, __global my_type_2 * arg_2, __global my_type * out)
{
//doing some stuff that works correctly
function1(arg_1, arg_2);
//doing some stuff that works correctly
}
where my_type are structs. I tested the code and I found out the problem to be the function call. I do not understand why, just having a function call cause aoc to crash. I tried commenting out everything that was inside the function and still the tool was crashing... Any clue?