 	eventAttrib.message.ascii = name; \
 	nvtxRangePushEx(&eventAttrib); \
 }
-#define END_RANGE nvtxRangePop();
+#define POP_RANGE nvtxRangePop();
 #else
-#define START_RANGE(name,cid)
-#define END_RANGE
+#define PUSH_RANGE(name,cid)
+#define POP_RANGE
 #endif
 
 __global__ void init_data_kernel( int n, double* x)

	cudaFree(x_d);
	cudaFreeHost(x);
	cudaDeviceSynchronize();
	END_RANGE
}

int main()


	cudaStreamDestroy(compute_stream);
	cudaStreamDestroy(copy_stream);
	POP_RANGE
}

void daxpy(int n, double a, double* x_d, double* y_d)
{
	PUSH_RANGE("daxpy",3)
	daxpy_kernel<<<ceil(n/256),256>>>(n,a,x_d,y_d);
	cudaDeviceSynchronize();
	POP_RANGE
}

void check_results( int n, double correctvalue, double* x_d )
{
	PUSH_RANGE("check_results",4)
	check_results_kernel<<<ceil(n/256),256>>>(n,correctvalue,x_d);
	POP_RANGE
}

void run_test(int n)
{
	PUSH_RANGE("run_test",0)
	double* x;
	double* x_d;
	double* y_d;
