     timer.start();
 
     for (uint32 i = 0; i < N_RUNS; ++i)
-        any_test_kernel<BLOCKDIM,VECDIM,N_TESTS><<<BLOCKDIM, N_THREADS / BLOCKDIM>>>( dst );
+        any_test_kernel<BLOCKDIM,VECDIM,N_TESTS><<<N_THREADS / BLOCKDIM, BLOCKDIM>>>( dst );
 
-    cudaThreadSynchronize();
+    cudaDeviceSynchronize();
 
     timer.stop();
 

#include <nvbio/basic/console.h>
#include <nvbio/basic/cuda/arch.h>
#include <nvbio/basic/cuda/scan.h>
#include <thrust/device_vector.h>

using namespace nvbio;


    timer.start();

    for (uint32 i = 0; i < N_RUNS; ++i)
        all_test_kernel<BLOCKDIM,VECDIM,N_TESTS><<<N_THREADS / BLOCKDIM, BLOCKDIM>>>( dst );

    cudaDeviceSynchronize();

    timer.stop();

