Fixed the sample. Now sample contains only the execution of a simple vector addition. Anyway the computation is executed twice and as shown the second time the execution time i 10 times lower since the kernel is not re-compiled. Awesome.