hi guys,
i have a very weird problem at the moment and i am not sure, why.
If i call following function, the program crashes rapidly - very difficult to debug. Before I test it i first have to clean and rebuild my solution. Otherwise it does not crash - seems like it does not update the code if i don’t clean it before.
The code is written for host and device using (host device) for all functions and it runs very well on the cpu.
[codebox]float x = _viewPlane.inv_gamma; // the inv_gamma value is 1.0f
mapped_color = mapped_color.powc(1.0f); // ← RUNS FINE[/codebox]
[codebox]float x = _viewPlane.inv_gamma; // the inv_gamma value is 1.0f
mapped_color = mapped_color.powc(x); // ← PROGRAM CRASH[/codebox]
At the moment i really have completely NO idea, what it could be… if I replace the pow(float, float) function which is used in my powc function, the program still crashes.
Might it be, that it has to do with parallelism - because it works well on the cpu? I guess this, because i can get the value _viewPlane.inv_gamma and can call the mapped_color.powc(1.0f) independently, but obviously NOT together.
I hope you can help me.
Thanks