Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
e3133b80
提交
e3133b80
authored
3月 11, 2016
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clip cnmem at 95% and update doc
上级
bb6b88b8
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
4 行删除
+12
-4
config.txt
doc/library/config.txt
+11
-3
cuda_ndarray.cu
theano/sandbox/cuda/cuda_ndarray.cu
+1
-1
没有找到文件。
doc/library/config.txt
浏览文件 @
e3133b80
...
...
@@ -403,17 +403,18 @@ import theano and print the config variable, as in:
Float value: >= 0
Controls the use of `CNMeM <https://github.com/NVIDIA/cnmem>`_ (a
faster CUDA memory allocator). In Theano dev version until 0.
7.1
faster CUDA memory allocator). In Theano dev version until 0.
8
is released.
The CNMeM library is included in Theano and does not need to be separately installed.
The CNMeM library is included in Theano and does not need to be
separately installed.
The value represents the start size (either in MB or the fraction of total GPU
memory) of the memory pool. If more memory is needed, Theano will
try to obtain more, but this can cause memory fragmentation.
* 0: not enabled.
* 0 < N <= 1: use this fraction of the total GPU memory (clipped to .9
85 for driver memory)
* 0 < N <= 1: use this fraction of the total GPU memory (clipped to .9
5 for driver memory).
* > 1: use this number in megabytes (MB) of memory.
...
...
@@ -426,6 +427,13 @@ import theano and print the config variable, as in:
the start or disable it. If you try this, report your result
on :ref`theano-dev`.
.. note::
The clipping at 95% can be bypassed by specifing the exact
number of megabytes. If more then 95% are needed, it will try
automatically to get more memory. But this can cause
fragmentation, see note above.
.. attribute:: linker
String value: 'c|py', 'py', 'c', 'c|py_nogc'
...
...
theano/sandbox/cuda/cuda_ndarray.cu
浏览文件 @
e3133b80
...
...
@@ -3246,7 +3246,7 @@ CudaNdarray_gpu_init(PyObject* _unused, PyObject* args)
else
{
// Clip to 95% to let memory for the driver.
// 98% didn't worked in some cases.
if
(
cnmem
>
.9
9
){
if
(
cnmem
>
.9
5
){
cnmem
=
.95
;
}
size_t
free
=
0
,
total
=
0
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论