summaryrefslogtreecommitdiff
path: root/libopencl/opencl_runtime_api.cc
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2011-07-07 12:43:15 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:17:56 -0700
commit03c08293a49924a687af70494f2dc47e4c85f725 (patch)
tree04778a8b657b3ab0c36aaba0d28b77735d419234 /libopencl/opencl_runtime_api.cc
parentd19b6fd66aeb4f54f692b6ab53bb7d5e6bfa8dc5 (diff)
Integration change. Bringing in the remote opencl changes from mem_divergence
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 9764]
Diffstat (limited to 'libopencl/opencl_runtime_api.cc')
-rw-r--r--libopencl/opencl_runtime_api.cc11
1 files changed, 9 insertions, 2 deletions
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);