Commit 01839ea 1 parent 1a8460c commit 01839ea Copy full SHA for 01839ea
File tree 1 file changed +16
-3
lines changed
benchmarks/common/tensorflow
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,20 @@ function _running-in-container()
68
68
[ -f /.dockerenv ]
69
69
}
70
70
71
- OS_PLATFORM=" "
71
+ # check if running on Windows OS
72
+ PLATFORM=' unknown'
73
+ unamestr=` uname`
74
+ if [[ " $unamestr " == ' Linux' ]]; then
75
+ PLATFORM=' linux'
76
+ elif [[ " $unamestr " == " MSYS" * ]]; then
77
+ PLATFORM=' windows'
78
+ else
79
+ echo " $unamestr is not supported!"
80
+ fi
81
+ echo
82
+ echo " Running on ${PLATFORM} "
83
+ echo
84
+
72
85
if [[ ${PLATFORM} == " linux" ]]; then
73
86
# Check the Linux PLATFORM distribution if CentOS, Debian or Ubuntu
74
87
OS_PLATFORM=$( egrep ' ^(NAME)=' /etc/os-release)
@@ -94,8 +107,8 @@ if [[ ${PLATFORM} == "linux" ]]; then
94
107
echo " ${OS_PLATFORM} version ${OS_VERSION} is not currently supported."
95
108
exit 1
96
109
fi
97
-
98
- echo " Running on ${OS_PLATFORM} version ${OS_VERSION} is supported. "
110
+ echo " Running on ${OS_PLATFORM} version ${OS_VERSION} is supported. "
111
+ fi
99
112
100
113
if [[ ${NOINSTALL} != " True" ]]; then
101
114
# set env var before installs so that user interaction is not required
You can’t perform that action at this time.
0 commit comments