diff options
Diffstat (limited to 'libopencl/opencl_runtime_api.cc')
| -rw-r--r-- | libopencl/opencl_runtime_api.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libopencl/opencl_runtime_api.cc b/libopencl/opencl_runtime_api.cc index 2f71848..70d6f16 100644 --- a/libopencl/opencl_runtime_api.cc +++ b/libopencl/opencl_runtime_api.cc @@ -462,7 +462,10 @@ void _cl_program::Build(const char *options) char commandline[1024]; const char *opt = options?options:""; - const char* test_dir = getenv( "PWD" ); + const char* test_dir = getenv( "OPENCL_REMOTE_DIRECTORY" ); + if ( !test_dir || strncmp( test_dir, "", 1 ) == 0 ) { + test_dir = getenv( "PWD" ); + } const char* remote_host = getenv( "OPENCL_REMOTE_GPU_HOST" ); if ( remote_host && test_dir ) { // create same directory on OpenCL to PTX server |
