Skip to content
Snippets Groups Projects
Commit 78f390c6 authored by massung1's avatar massung1
Browse files

added a LD_LIBRARY_PATH for libiomp5.so for the parallel labs

git-svn-id: https://subversion.cs.illinois.edu/svn/cs225@6112 6fbd10e7-183d-0410-a318-cb416676e4f2
parent 191703a2
No related branches found
No related tags found
No related merge requests found
...@@ -183,10 +183,11 @@ int8_t exec(const string & command, const vector<string> & args, ostream * outpu ...@@ -183,10 +183,11 @@ int8_t exec(const string & command, const vector<string> & args, ostream * outpu
// Sanitize environment // Sanitize environment
char path[] = "PATH=/bin/:/usr/bin:/usr/local/bin"; char path[] = "PATH=/bin/:/usr/bin:/usr/local/bin";
char libpath[] = "LD_LIBRARY_PATH=/software/intel-composer-2011u5-x86_64/lib/intel64/:$LD_LIBRARY_PATH"; // path for libiomp5.so
// Turn off glibc errors default write-to-terminal behaviour, because // Turn off glibc errors default write-to-terminal behaviour, because
// it does not get caught by stderr. This instead results in an abort. // it does not get caught by stderr. This instead results in an abort.
char redirect_glibc[] = "LIBC_FATAL_STDERR_=1"; char redirect_glibc[] = "LIBC_FATAL_STDERR_=1";
char * newenv[] = { path, redirect_glibc, NULL }; char * newenv[] = { path, libpath, redirect_glibc, NULL };
environ = newenv; environ = newenv;
char ** args_cstr = cstr_array_from_vector_string(command, args); char ** args_cstr = cstr_array_from_vector_string(command, args);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment