From c0bbaa41f3ed67d7d57b8ebca7df1e67535915ea Mon Sep 17 00:00:00 2001 From: afender Date: Fri, 26 Jun 2020 13:03:32 -0500 Subject: [PATCH 1/3] print_env.sh update --- print_env.sh | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/print_env.sh b/print_env.sh index ddb36bc65..ede280611 100644 --- a/print_env.sh +++ b/print_env.sh @@ -1,13 +1,16 @@ #!/usr/bin/env bash # Reports relevant environment information useful for diagnosing and -# debugging cuGraph issues. +# debugging cuDF issues. # Usage: # "./print_env.sh" - prints to stdout # "./print_env.sh > env.txt" - prints to file "env.txt" +print_env() { echo "**git***" if [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" == "true" ]; then git log --decorate -n 1 +echo "**git submodules***" +git submodule status --recursive else echo "Not inside a git repository" fi @@ -27,19 +30,19 @@ lscpu echo echo "***CMake***" -which cmake && cmake --version +which cmake && cmake --version echo echo "***g++***" -which g++ && g++ --version +which g++ && g++ --version echo echo "***nvcc***" -which nvcc && nvcc --version +which nvcc && nvcc --version echo echo "***Python***" -which python && python --version +which python && python -c "import sys; print('Python {0}.{1}.{2}'.format(sys.version_info[0], sys.version_info[1], sys.version_info[2]))" echo echo "***Environment Variables***" @@ -62,7 +65,7 @@ echo # Print conda packages if conda exists if type "conda" &> /dev/null; then echo '***conda packages***' -which conda && conda list +which conda && conda list echo # Print pip packages if pip exists elif type "pip" &> /dev/null; then @@ -74,3 +77,11 @@ else echo "conda not found" echo "pip not found" fi +} + +echo "
Click here to see environment details
"
+echo "     "
+print_env | while read -r line; do
+    echo "     $line"
+done
+echo "
" \ No newline at end of file From 72e14de3f3d56c152bc6881bbd78da6cea4b4761 Mon Sep 17 00:00:00 2001 From: afender Date: Fri, 26 Jun 2020 13:10:18 -0500 Subject: [PATCH 2/3] typo --- print_env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print_env.sh b/print_env.sh index ede280611..27b94563b 100644 --- a/print_env.sh +++ b/print_env.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Reports relevant environment information useful for diagnosing and -# debugging cuDF issues. +# debugging cuGraph issues. # Usage: # "./print_env.sh" - prints to stdout # "./print_env.sh > env.txt" - prints to file "env.txt" From 114ec535e589a90a8e7fbb5082b26ffc443f8106 Mon Sep 17 00:00:00 2001 From: afender Date: Fri, 26 Jun 2020 13:11:34 -0500 Subject: [PATCH 3/3] EOF --- print_env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print_env.sh b/print_env.sh index 27b94563b..6f2d33b0e 100644 --- a/print_env.sh +++ b/print_env.sh @@ -84,4 +84,4 @@ echo " " print_env | while read -r line; do echo " $line" done -echo "" \ No newline at end of file +echo ""