Hey guys,

I got the following issue: I want to make a simple vector by float multiplication in my cl kernel. But since I call the function to do the operation I get an OUT_OF_RESOURCES error when calling clEnqueueNDRangeKernel. How could this be with such a small function? I’m just using three new float vars in the function. If I comment the line out where I call the vec_mul_float, everything works fine! The vec_mul_float function and the Vector3D struct are defined as follows:

```
Vector3D
vec_mul_float (const Vector3D v, const float a) {
Vector3D ret_vec = {a * v.x, a * v.y, a * v.z};
return ret_vec;
}
```

```
typedef struct Vector3D {
float x, y, z;
} Vector3D;
```

May someone help me please?

Thanks, Daniel