From 167c866742713f32807dd10e3ebe796ea23e9645 Mon Sep 17 00:00:00 2001 From: Ayub Gubran Date: Mon, 9 Jan 2012 13:17:24 -0800 Subject: Integrating the pure functional simulation Merging //depot/gpgpu_sim_research/fermi_ayoub/distribution/src/abstract_hardware_model.cc //depot/gpgpu_sim_research/fermi_ayoub/distribution/src/abstract_hardware_model.h //depot/gpgpu_sim_research/fermi_ayoub/distribution/src/gpgpusim_entrypoint.cc to //depot/gpgpu_sim_research/fermi/distribution/src/... [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11286] --- src/gpgpusim_entrypoint.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/gpgpusim_entrypoint.cc') diff --git a/src/gpgpusim_entrypoint.cc b/src/gpgpusim_entrypoint.cc index add9a22..e18b088 100644 --- a/src/gpgpusim_entrypoint.cc +++ b/src/gpgpusim_entrypoint.cc @@ -238,8 +238,15 @@ int gpgpu_opencl_ptx_sim_main_perf( kernel_info_t *grid ) return 0; } +//! Functional simulation of OpenCL +/*! + * This function call the CUDA PTX functional simulator + */ int gpgpu_opencl_ptx_sim_main_func( kernel_info_t *grid ) { - printf("GPGPU-Sim PTX API: OpenCL functional-only simulation not yet implemented (use performance simulation)\n"); - exit(1); + //calling the CUDA PTX simulator, sending the kernel by reference and a flag set to true, + //the flag used by the function to distinguish OpenCL calls from the CUDA simulation calls which + //it is needed by the called function to not register the exit the exit of OpenCL kernel as it doesn't register entering in the first place as the CUDA kernels does + gpgpu_cuda_ptx_sim_main_func( *grid, true ); + return 0; } -- cgit v1.3