Commit 88798267 authored by Berrill, Mark's avatar Berrill, Mark
Browse files

Adding hostname to print info

parent f6b75075
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
build/*/CreateImage
build/*/Ray*
build/*/Makefile
build/*/bin
build/*/CMake*
build/*/cmake*
build/*/include
build/*/install*
build/*/interp*
build/*/null_timer
build/*/lib*
build/*/core.*
build/*CreateImage
build/*Ray*
build/*Makefile
build/*bin
build/*CMake*
build/*cmake*
build/*include
build/*install*
build/*interp*
build/*null_timer
build/*lib*
build/*core.*
build/pgi/*.lst
+6 −2
Original line number Diff line number Diff line
@@ -272,7 +272,11 @@ void printHardware()
#else
    #error Unknown OS
#endif
    // Get the hostname
    char hostname[1000];
    gethostname( hostname, sizeof(hostname) );
    // Print the results
    std::cout << "Hostname: " << hostname << std::endl;
    std::cout << "Number of threads: " << N_threads << std::endl;
    std::cout << "Number of gpus: " << N_gpu << std::endl;
    std::cout << "System memory: " << N_bytes/1073741824 << " GB" << std::endl;