The code is correct. As far as I know, that should run fine and give corret results.
The code is correct. As far as I know, that should run fine and give corret results. Barrier(CLK_GLOBAL_MEM_FENCE); is not needed.
You'll get more speed without that sentence. Your problem should be outside the kernel, check that you a re passing correctly the input, and you are taking out of GPU the correct data. BTW, I supose you are using a double precision suported GPU as you are doing double calcs.
Check that you are passing also double values. Remember you CAN't point a float pointer to a double value, and viceversa. That will give you wrong results.
Yes I noticed that the BARRIER is not required in this case. Thank you for pointing me to the datatype. – Sayan May 26 at 5:06.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.