srap cudaFree with test macro n scan.cu