summaryrefslogtreecommitdiff
path: root/libopencl
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-10-09 23:11:40 -0800
committerTor Aamodt <[email protected]>2010-10-09 23:11:40 -0800
commit0151c5c566dcbcbb962acf35c86a8e0f4a4a6eb6 (patch)
tree5054a1dcbde8bfc26ffd86ee1d95b872476ecb6d /libopencl
parent26ff0f007f2021b2fe60b0e86f6fc6d90b46c7e5 (diff)
fixes problem with remote OpenCL PTX generation
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7843]
Diffstat (limited to 'libopencl')
-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 ) {