find the min value in a file

I want to find the min value in a file

I have kernel to find the min

but when I print the value is error

the min value is 192.972198 in the file

bur print the result is 265.335815 in the src

please help me to finding error

the src:
http://dl.dropbox.com/u/828278/CUDA_min.rar

(As a disclaimer, I didn’t look at your code…)
You can use the CUDPP/Thrust/OpenCV_GPU library to find the min or max in an array also. Only takes a few lines of code with those