From fee4dcc33ad3fb3988bfdf89aceef04c462ae1ce Mon Sep 17 00:00:00 2001 From: youkaichao Date: Tue, 4 Jun 2024 15:29:09 -0700 Subject: [PATCH] [Misc] update collect env (#5261) --- collect_env.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/collect_env.py b/collect_env.py index 5a015c3c8f..083cb768f5 100644 --- a/collect_env.py +++ b/collect_env.py @@ -603,6 +603,11 @@ Versions of relevant libraries: {conda_packages} """.strip() +# both the above code and the following code use `strip()` to +# remove leading/trailing whitespaces, so we need to add a newline +# in between to separate the two sections +env_info_fmt += "\n" + env_info_fmt += """ ROCM Version: {rocm_version} Neuron SDK Version: {neuron_sdk_version}