Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_38905368
tensorflow
提交
78c246bb
T
tensorflow
项目概览
qq_38905368
/
tensorflow
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tensorflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
78c246bb
编写于
12月 13, 2018
作者:
T
TensorFlower Gardener
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #22964 from perfinion:bazelrc
PiperOrigin-RevId: 225413451
上级
ec702337
23495909
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
21 addition
and
26 deletion
+21
-26
.bazelrc
.bazelrc
+8
-0
.gitignore
.gitignore
+1
-1
WORKSPACE
WORKSPACE
+1
-1
configure.py
configure.py
+5
-18
tensorflow/tools/ci_build/install/install_bazel.sh
tensorflow/tools/ci_build/install/install_bazel.sh
+1
-1
tensorflow/tools/ci_build/install/install_bazel_from_source.sh
...rflow/tools/ci_build/install/install_bazel_from_source.sh
+1
-1
tensorflow/tools/docker/Dockerfile.devel
tensorflow/tools/docker/Dockerfile.devel
+1
-1
tensorflow/tools/docker/Dockerfile.devel-gpu
tensorflow/tools/docker/Dockerfile.devel-gpu
+1
-1
tensorflow/tools/docker/Dockerfile.devel-mkl
tensorflow/tools/docker/Dockerfile.devel-mkl
+1
-1
tensorflow/tools/docker/Dockerfile.devel-mkl-horovod
tensorflow/tools/docker/Dockerfile.devel-mkl-horovod
+1
-1
未找到文件。
tools/bazel.
rc
→
.bazel
rc
浏览文件 @
78c246bb
...
...
@@ -92,3 +92,11 @@ build:dynamic_kernels --copt=-DAUTOLOAD_DYNAMIC_KERNELS
build --define=PREFIX=/usr
build --define=LIBDIR=$(PREFIX)/lib
build --define=INCLUDEDIR=$(PREFIX)/include
# Default options should come above this line
# Options from ./configure
try-import %workspace%/.tf_configure.bazelrc
# Put user-specific options in .bazelrc.user
try-import %workspace%/.bazelrc.user
.gitignore
浏览文件 @
78c246bb
.DS_Store
.ipynb_checkpoints
node_modules
/.bazelrc
/.bazelrc
.user
/.tf_configure.bazelrc
/bazel-*
/bazel_pip
...
...
WORKSPACE
浏览文件 @
78c246bb
...
...
@@ -44,7 +44,7 @@ remote_config_workspace()
# files, in case the parsing of those build files depends on the bazel
# version we require here.
load
(
"//tensorflow:version_check.bzl"
,
"check_bazel_version_at_least"
)
check_bazel_version_at_least
(
"0.1
5
.0"
)
check_bazel_version_at_least
(
"0.1
8
.0"
)
load
(
"//tensorflow:workspace.bzl"
,
"tf_workspace"
)
...
...
configure.py
浏览文件 @
78c246bb
...
...
@@ -255,18 +255,6 @@ def setup_python(environ_cp):
def
reset_tf_configure_bazelrc
():
"""Reset file that contains customized config settings."""
open
(
_TF_BAZELRC
,
'w'
).
close
()
bazelrc_path
=
os
.
path
.
join
(
_TF_WORKSPACE_ROOT
,
'.bazelrc'
)
data
=
[]
if
os
.
path
.
exists
(
bazelrc_path
):
with
open
(
bazelrc_path
,
'r'
)
as
f
:
data
=
f
.
read
().
splitlines
()
with
open
(
bazelrc_path
,
'w'
)
as
f
:
for
l
in
data
:
if
_TF_BAZELRC_FILENAME
in
l
:
continue
f
.
write
(
'%s
\n
'
%
l
)
f
.
write
(
'import %%workspace%%/%s
\n
'
%
_TF_BAZELRC_FILENAME
)
def
cleanup_makefile
():
"""Delete any leftover BUILD files from the Makefile build.
...
...
@@ -488,11 +476,12 @@ def check_bazel_version(min_version, max_version):
if
curr_version_int
<
min_version_int
:
print
(
'Please upgrade your bazel installation to version %s or higher to '
'build TensorFlow!'
%
min_version
)
sys
.
exit
(
0
)
if
curr_version_int
>
max_version_int
:
sys
.
exit
(
1
)
if
(
curr_version_int
>
max_version_int
and
'TF_IGNORE_MAX_BAZEL_VERSION'
not
in
os
.
environ
):
print
(
'Please downgrade your bazel installation to version %s or lower to '
'build TensorFlow!'
%
max_version
)
sys
.
exit
(
0
)
sys
.
exit
(
1
)
return
curr_version
...
...
@@ -1565,11 +1554,9 @@ def main():
# environment variables.
environ_cp
=
dict
(
os
.
environ
)
check_bazel_version
(
'0.1
5
.0'
,
'0.20.0'
)
check_bazel_version
(
'0.1
8
.0'
,
'0.20.0'
)
reset_tf_configure_bazelrc
()
# Explicitly import tools/bazel.rc, this is needed for Bazel 0.19.0 or later
write_to_bazelrc
(
'import %workspace%/tools/bazel.rc'
)
cleanup_makefile
()
setup_python
(
environ_cp
)
...
...
tensorflow/tools/ci_build/install/install_bazel.sh
浏览文件 @
78c246bb
...
...
@@ -15,7 +15,7 @@
# ==============================================================================
# Select bazel version.
BAZEL_VERSION
=
"0.
15
.0"
BAZEL_VERSION
=
"0.
20
.0"
set
+e
local_bazel_ver
=
$(
bazel version 2>&1 |
grep
-i
label |
awk
'{print $3}'
)
...
...
tensorflow/tools/ci_build/install/install_bazel_from_source.sh
浏览文件 @
78c246bb
...
...
@@ -18,7 +18,7 @@
# It will compile bazel from source and install it in /usr/local/bin
# Select bazel version.
BAZEL_VERSION
=
"0.
15
.0"
BAZEL_VERSION
=
"0.
20
.0"
set
+e
local_bazel_ver
=
$(
bazel version 2>&1 |
grep
-i
label |
awk
'{print $3}'
)
...
...
tensorflow/tools/docker/Dockerfile.devel
浏览文件 @
78c246bb
...
...
@@ -65,7 +65,7 @@ RUN echo "startup --batch" >>/etc/bazel.bazelrc
RUN echo "build --spawn_strategy=standalone --genrule_strategy=standalone" \
>>/etc/bazel.bazelrc
# Install the most recent bazel release.
ENV BAZEL_VERSION 0.
15
.0
ENV BAZEL_VERSION 0.
20
.0
WORKDIR /
RUN mkdir /bazel && \
cd /bazel && \
...
...
tensorflow/tools/docker/Dockerfile.devel-gpu
浏览文件 @
78c246bb
...
...
@@ -87,7 +87,7 @@ RUN echo "startup --batch" >>/etc/bazel.bazelrc
RUN echo "build --spawn_strategy=standalone --genrule_strategy=standalone" \
>>/etc/bazel.bazelrc
# Install the most recent bazel release.
ENV BAZEL_VERSION 0.
15
.0
ENV BAZEL_VERSION 0.
20
.0
WORKDIR /
RUN mkdir /bazel && \
cd /bazel && \
...
...
tensorflow/tools/docker/Dockerfile.devel-mkl
浏览文件 @
78c246bb
...
...
@@ -88,7 +88,7 @@ RUN echo "startup --batch" >>/etc/bazel.bazelrc
RUN echo "build --spawn_strategy=standalone --genrule_strategy=standalone" \
>>/etc/bazel.bazelrc
# Install the most recent bazel release.
ENV BAZEL_VERSION 0.
15
.0
ENV BAZEL_VERSION 0.
20
.0
WORKDIR /
RUN mkdir /bazel && \
cd /bazel && \
...
...
tensorflow/tools/docker/Dockerfile.devel-mkl-horovod
浏览文件 @
78c246bb
...
...
@@ -79,7 +79,7 @@ RUN echo "startup --batch" >>/etc/bazel.bazelrc
RUN echo "build --spawn_strategy=standalone --genrule_strategy=standalone" \
>>/etc/bazel.bazelrc
# Install the most recent bazel release.
ENV BAZEL_VERSION 0.
15
.0
ENV BAZEL_VERSION 0.
20
.0
WORKDIR /
RUN mkdir /bazel && \
cd /bazel && \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录