mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Replace the docker check with an OS check.
PiperOrigin-RevId: 174057778
This commit is contained in:
committed by
TensorFlower Gardener
parent
5f1a66ccb4
commit
938643b561
@@ -201,13 +201,13 @@ function get_cuda_capability_version() {
|
||||
# Container type, e.g., CPU, GPU
|
||||
CTYPE=${TF_BUILD_CONTAINER_TYPE}
|
||||
|
||||
# Determine if Docker is available
|
||||
# Determine if the machine is a Mac
|
||||
OPT_FLAG=""
|
||||
if [[ -z "$(which docker)" ]]; then
|
||||
if [[ "$(uname -s)" == "Darwin" ]]; then
|
||||
DO_DOCKER=0
|
||||
|
||||
echo "It appears that Docker is not available on this system. "\
|
||||
"Will perform build without Docker."
|
||||
echo "It appears this machine is a Mac. "\
|
||||
"We will perform this build without Docker."
|
||||
echo "Also, the additional option flags will be applied to the build:"
|
||||
echo " ${NO_DOCKER_OPT_FLAG}"
|
||||
MAIN_CMD="${NO_DOCKER_MAIN_CMD} ${CTYPE}"
|
||||
|
||||
Reference in New Issue
Block a user