From b6661da800739b0fca9e01ba6d5afaca4f286d84 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Sat, 17 Jul 2010 00:06:40 -0800 Subject: - bug fix: parsing hex int constants didn't have a-fA-F!?! - modify template to use printf from kernel (this works on our Fermi card--want it working on simulator for debugging) - add support for extern function declarations (so don't try to assemble them)... printf is extern [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6862] --- benchmarks/CUDA/template/template_kernel.cu | 1 + 1 file changed, 1 insertion(+) (limited to 'benchmarks') diff --git a/benchmarks/CUDA/template/template_kernel.cu b/benchmarks/CUDA/template/template_kernel.cu index f65507b..4ced538 100644 --- a/benchmarks/CUDA/template/template_kernel.cu +++ b/benchmarks/CUDA/template/template_kernel.cu @@ -47,6 +47,7 @@ testKernel( float* g_idata, float* g_odata) // emulation SDATA(tid) = g_idata[tid]; __syncthreads(); + printf("thread tid=%u reads %f from g_idata[]\n", tid, sdata[tid]); // perform some computations SDATA(tid) = (float) num_threads * SDATA( tid); -- cgit v1.3