summaryrefslogtreecommitdiff
path: root/libopencl/opencl_runtime_api.cc
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2011-11-30 15:42:38 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:19:01 -0700
commit287fdac3708024da85392b72e19a35e04285dfb8 (patch)
treef4802192ef245219456d721fb7497058e61d71b3 /libopencl/opencl_runtime_api.cc
parent1e1f55eab133191e47b0f5e544925c750ab4ac71 (diff)
using rsync because of ssh having issues with concurreny copying
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11065]
Diffstat (limited to 'libopencl/opencl_runtime_api.cc')
-rw-r--r--libopencl/opencl_runtime_api.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libopencl/opencl_runtime_api.cc b/libopencl/opencl_runtime_api.cc
index cfdd5ed..9909d2a 100644
--- a/libopencl/opencl_runtime_api.cc
+++ b/libopencl/opencl_runtime_api.cc
@@ -477,14 +477,14 @@ void _cl_program::Build(const char *options)
if( result ) { printf("GPGPU-Sim OpenCL API: ERROR (%d)\n", result ); exit(1); }
// copy input OpenCL file to OpenCL to PTX server
- snprintf(commandline,1024,"scp %s/%s %s:%s/%s", local_pwd, cl_fname, remote_host, remote_dir, cl_fname );
+ snprintf(commandline,1024,"rsync -t %s/%s %s:%s/%s", local_pwd, cl_fname, remote_host, remote_dir, cl_fname );
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); }
// 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, remote_dir );
+ snprintf(commandline,1024,"rsync -t %s/libopencl/bin/nvopencl_wrapper %s:%s/nvopencl_wrapper", gpgpusim_opencl_path, remote_host, remote_dir );
printf("GPGPU-Sim OpenCL API: OpenCL wrapper command line \'%s\'\n", commandline);
fflush(stdout);
result = system(commandline);
@@ -499,7 +499,7 @@ void _cl_program::Build(const char *options)
if( result ) { printf("GPGPU-Sim OpenCL API: ERROR (%d)\n", result ); exit(1); }
// copy output PTX from OpenCL to PTX server back to simulation directory
- snprintf(commandline,1024,"scp %s:%s/%s %s/%s", remote_host, remote_dir, ptx_fname, local_pwd, ptx_fname );
+ snprintf(commandline,1024,"rsync -t %s:%s/%s %s/%s", remote_host, remote_dir, ptx_fname, local_pwd, ptx_fname );
printf("GPGPU-Sim OpenCL API: OpenCL wrapper command line \'%s\'\n", commandline);
fflush(stdout);
result = system(commandline);