Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
Mace
提交
f9d6025d
Mace
项目概览
慢慢CG
/
Mace
与 Fork 源项目一致
Fork自
Xiaomi / Mace
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Mace
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
f9d6025d
编写于
12月 03, 2018
作者:
Y
yejianwu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update dockerfile to support onnx, and fix typo
上级
bfbe1a30
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
4 deletion
+17
-4
docker/mace-dev-lite/Dockerfile
docker/mace-dev-lite/Dockerfile
+14
-1
mace/core/runtime/opencl/opencl_runtime.cc
mace/core/runtime/opencl/opencl_runtime.cc
+2
-2
mace/core/runtime/opencl/opencl_runtime.h
mace/core/runtime/opencl/opencl_runtime.h
+1
-1
未找到文件。
docker/mace-dev-lite/Dockerfile
浏览文件 @
f9d6025d
...
...
@@ -22,6 +22,7 @@ RUN apt-get install -y --no-install-recommends \
python-dev
\
python-pip
\
protobuf-compiler
\
libprotoc-dev
\
rsync
\
software-properties-common
\
unzip
\
...
...
@@ -95,7 +96,6 @@ RUN apt-get install -y --no-install-recommends \
android-tools-adb
RUN
pip
install
-i
http://pypi.douban.com/simple/
--trusted-host
pypi.douban.com setuptools
RUN
pip
install
-i
http://pypi.douban.com/simple/
--trusted-host
pypi.douban.com
\
tensorflow
==
1.8.0
\
"numpy>=1.14.0"
\
scipy
\
jinja2
\
...
...
@@ -104,6 +104,19 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pycodestyle
==
2.4.0
\
filelock
# Install Tensorflow
RUN
pip
install
-i
http://pypi.douban.com/simple/
--trusted-host
pypi.douban.com
\
tensorflow
==
1.8.0
# Install pytorch (refer to: https://pytorch.org/get-started/locally/)
RUN
pip
install
future
==
0.17.1 torchvision_nightly
RUN
pip
install
torch_nightly
-f
https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# Install ONNX
RUN
pip
install
-i
http://pypi.douban.com/simple/
--trusted-host
pypi.douban.com
\
onnx
==
1.3.0
\
onnx-tf
==
1.2.0
# fix docker in docker error: `error while loading shared libraries: libltdl.so.7`
# refer to: https://github.com/jenkinsci/docker/issues/506
RUN
apt-get
install
-y
libltdl7
mace/core/runtime/opencl/opencl_runtime.cc
浏览文件 @
f9d6025d
...
...
@@ -425,7 +425,7 @@ OpenCLRuntime::OpenCLRuntime(
}
device_
->
getInfo
(
CL_DEVICE_GLOBAL_MEM_CACHE_SIZE
,
&
device_glo
ab
l_mem_cache_size_
);
&
device_glo
ba
l_mem_cache_size_
);
device_
->
getInfo
(
CL_DEVICE_MAX_COMPUTE_UNITS
,
&
device_compute_units_
);
...
...
@@ -464,7 +464,7 @@ cl::CommandQueue &OpenCLRuntime::command_queue() { return *command_queue_; }
Tuner
<
uint32_t
>
*
OpenCLRuntime
::
tuner
()
{
return
tuner_
.
get
();
}
uint64_t
OpenCLRuntime
::
device_global_mem_cache_size
()
const
{
return
device_glo
ab
l_mem_cache_size_
;
return
device_glo
ba
l_mem_cache_size_
;
}
uint32_t
OpenCLRuntime
::
device_compute_units
()
const
{
...
...
mace/core/runtime/opencl/opencl_runtime.h
浏览文件 @
f9d6025d
...
...
@@ -147,7 +147,7 @@ class OpenCLRuntime {
std
::
string
platform_info_
;
std
::
string
precompiled_binary_platform_info_
;
bool
out_of_range_check_
;
uint64_t
device_glo
ab
l_mem_cache_size_
;
uint64_t
device_glo
ba
l_mem_cache_size_
;
uint32_t
device_compute_units_
;
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录