I’m a little confused on why I’m getting this error. The following code (its a **global** function) produces NO errors:

```
for (int i = 0; i < 4; i++)
{
float amount = round(error/float(i+1))*increment;
//*neighbors[i] = amount;
}
float amount;
amount = round(error/float(1))* increment;;
*neighbors[0] = amount;
amount = round(error/float(2))* increment;;
*neighbors[1] = amount;
amount = round(error/float(3))* increment;;
*neighbors[2] = amount;
amount = round(error/float(4))* increment;;
*neighbors[3] = amount;
```

Now if I uncomment the commented line, then this code FAILS with unspecified launch failure.

```
for (int i = 0; i < 4; i++)
{
float amount = round(error/float(i+1))*increment;
*neighbors[i] = amount;
}
float amount;
amount = round(error/float(1))* increment;;
*neighbors[0] = amount;
amount = round(error/float(2))* increment;;
*neighbors[1] = amount;
amount = round(error/float(3))* increment;;
*neighbors[2] = amount;
amount = round(error/float(4))* increment;;
*neighbors[3] = amount;
```

I’m not sure whats going on. Any ideas? Could it be something to do with how I’m compiling this? The flags I’m using are -use_fast_math -O3

Any help would be greatly appreciated, thanks.