laerror do nto list files by default

This commit is contained in:
Jiri Pittner 2025-05-05 15:16:56 +02:00
parent 8f037f7ccf
commit 78c0e4edc5
2 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,8 @@
namespace LA { namespace LA {
bool LA_error_list_files=false;
//enforce GPU initialization by a global class instantization constructor //enforce GPU initialization by a global class instantization constructor
#ifdef CUDALA #ifdef CUDALA
GPU_START gpu_start_instant; GPU_START gpu_start_instant;
@ -140,7 +142,8 @@ if(f)
std::cerr.flush(); std::cerr.flush();
} }
int r=system("echo INFO:; whoami; hostname; pwd; ls -l -t .;"); int r=system("echo INFO:; whoami; hostname; pwd;");
if(LA_error_list_files) r=system("ls -l -t .;");
throw LAerror(s1); throw LAerror(s1);
} }

View File

@ -55,6 +55,8 @@ return s;
extern int endianity(); extern int endianity();
extern bool LA_error_list_files;
}//namespace }//namespace
#endif #endif