Solved by albanD in post #2 
              
              
                Hi, 
Here is a modified version of your code that does proper timing. 
The GPU initialization takes some time, so you want to make that before measuring runtimes. 
Also cuda api is asynchronous so you need to sync when measuring time. 
Also there might be some variance in the runtimes depending on t…