cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

rkreddy
Journeyman III

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

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

 

 

 

 

 

0 Likes
1 Reply
omkaranathan
Adept I

The behavior is not expected. Do you have a testcase with you which reproduces the problem?

0 Likes