elapsed Time difference between clock function and time function while using AMD GPU in linux

Discussion created by rkreddy on Jul 8, 2010
Latest reply on Jul 30, 2010 by omkaranathan
why the elaspsed time is diffrent for clock and time function when using AMD GPU for processing

I am using 9250 Firestream card O/S redhat linux


Intially i used clock function to know the time elapsed for processing when using GPU

i reduced the time to 0.9 sec from 6 sec bye changing the kernel and group size

latter i tried with time() function now time function retunts the elapsed time as 12 sec why it so


while running Nvidia both functions are returning same time as 2.5 sec 


please give me some suggesions