Re: [Rtk-users] GPU kernel do not change output variables

2019-02-27 Thread Kabelitz, Gordian
Hi Simon, I used the printf in the kernel to print the id and the fixed value. Therefore I know that the kernel is reached. It looked similar to this snippet: gradient_kernel(float * in, float * grad_x, float * grad_y, float * grad_z, int3 c_Size, float3 c_Spacing) { unsigned int i =

Re: [Rtk-users] GPU kernel do not change output variables

2019-02-27 Thread Simon Rit
Hi, Sounds like a challenge. When you say you set fixed numbers, did you check that you reach the point where you set this number? You can use cuprintf to check what's going on in the kernel. One thing wrong I noticed: you use size.Fill in a loop, which is a bit odd because it will Fill the size