From 03c08293a49924a687af70494f2dc47e4c85f725 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Thu, 7 Jul 2011 12:43:15 -0800 Subject: Integration change. Bringing in the remote opencl changes from mem_divergence [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 9764] --- libopencl/opencl_runtime_api.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'libopencl/opencl_runtime_api.cc') diff --git a/libopencl/opencl_runtime_api.cc b/libopencl/opencl_runtime_api.cc index 7a23f37..5e4af81 100644 --- a/libopencl/opencl_runtime_api.cc +++ b/libopencl/opencl_runtime_api.cc @@ -479,9 +479,16 @@ void _cl_program::Build(const char *options) result = system(commandline); if( result ) { printf("GPGPU-Sim OpenCL API: ERROR (%d)\n", result ); exit(1); } + // copy the nvopencl_wrapper file to the remote server + snprintf(commandline,1024,"scp %s/libopencl/bin/nvopencl_wrapper %s:%s/nvopencl_wrapper", gpgpusim_opencl_path, remote_host, test_dir ); + printf("GPGPU-Sim OpenCL API: OpenCL wrapper command line \'%s\'\n", commandline); + fflush(stdout); + result = system(commandline); + if( result ) { printf("GPGPU-Sim OpenCL API: ERROR (%d)\n", result ); exit(1); } + // convert OpenCL to PTX on remote server - snprintf(commandline,1024,"ssh %s \"export LD_LIBRARY_PATH=%s; %s/libopencl/bin/nvopencl_wrapper %s/%s %s/%s %s\"", - remote_host, nvopencl_libdir, gpgpusim_opencl_path, test_dir, cl_fname, test_dir, ptx_fname, opt ); + snprintf(commandline,1024,"ssh %s \"export LD_LIBRARY_PATH=%s; %s/nvopencl_wrapper %s/%s %s/%s %s\"", + remote_host, nvopencl_libdir, test_dir, test_dir, cl_fname, test_dir, ptx_fname, opt ); printf("GPGPU-Sim OpenCL API: OpenCL wrapper command line \'%s\'\n", commandline); fflush(stdout); result = system(commandline); -- cgit v1.3