diff options
| author | Tor Aamodt <[email protected]> | 2010-07-17 00:06:40 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-07-17 00:06:40 -0800 |
| commit | b6661da800739b0fca9e01ba6d5afaca4f286d84 (patch) | |
| tree | 1ae2883b6a75476bae851abf2fac20619a2afb5c /benchmarks/CUDA/template/template_kernel.cu | |
| parent | d67e0e6d7c50a5c6f567e387e17782f022553264 (diff) | |
- 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]
Diffstat (limited to 'benchmarks/CUDA/template/template_kernel.cu')
| -rw-r--r-- | benchmarks/CUDA/template/template_kernel.cu | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
