summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 8c9819b..79a88c5 100644
--- a/libopencl/opencl_runtime_api.cc
+++ b/libopencl/opencl_runtime_api.cc
@@ -467,15 +467,15 @@ void _cl_program::Build(const char *options)
const char* remote_host = getenv( "OPENCL_REMOTE_GPU_HOST" );
if ( remote_host && test_dir )
{
- snprintf(commandline,1024,"ssh %s \"%s/libopencl/bin/nvopencl_wrapper %s/%s %s/%s %s\"",
- remote_host, gpgpusim_opencl_path, test_dir, cl_fname, test_dir, ptx_fname, opt );
+ 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 );
}
else
{
snprintf(commandline,1024,"%s/libopencl/bin/nvopencl_wrapper %s %s %s",
gpgpusim_opencl_path, cl_fname, ptx_fname, opt );
}
-
+ printf("GPGPU-Sim OpenCL API: OpenCL wrapper command line \'%s\'\n", commandline);
int result = system(commandline);
setenv("LD_LIBRARY_PATH",ld_library_path_orig,1);
if( result != 0 ) {