提交 32cc0db1 编写于 作者: T tensor-tang

check if cmake has been installed

上级 f62dbebe
...@@ -150,7 +150,12 @@ echo "OS Version : `cat /etc/redhat-release`" ...@@ -150,7 +150,12 @@ echo "OS Version : `cat /etc/redhat-release`"
echo "Kernel Release Version : `uname -r`" echo "Kernel Release Version : `uname -r`"
echo "Kernel Patch Version : `uname -v`" echo "Kernel Patch Version : `uname -v`"
echo "GCC Version :`gcc --version | head -n 1|awk -F '\\\(GCC\\\)' '{print $2}'`" echo "GCC Version :`gcc --version | head -n 1|awk -F '\\\(GCC\\\)' '{print $2}'`"
echo "CMake Version :`cmake --version | head -n 1 | awk -F 'version' '{print $2}'`" if command -v cmake >/dev/null 2>&1; then
cmake_ver=`cmake --version | head -n 1 | awk -F 'version' '{print $2}'`
else
cmake_ver=" Not installed"
fi
echo "CMake Version :$cmake_ver"
echo "------------------ Environment Variables Information -------------------" echo "------------------ Environment Variables Information -------------------"
kmp_affinity=`env | grep KMP_AFFINITY` kmp_affinity=`env | grep KMP_AFFINITY`
omp_dynamic=`env | grep OMP_DYNAMIC` omp_dynamic=`env | grep OMP_DYNAMIC`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册