Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
c138b770
提交
c138b770
authored
2月 02, 2017
作者:
notoraptor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move configuration of libgpuarray folder for Windows into GpuArrayType.
上级
e10d5c5a
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
10 行删除
+15
-10
cmodule.py
theano/gof/cmodule.py
+1
-9
type.py
theano/gpuarray/type.py
+14
-1
没有找到文件。
theano/gof/cmodule.py
浏览文件 @
c138b770
...
@@ -1584,12 +1584,7 @@ def std_include_dirs():
...
@@ -1584,12 +1584,7 @@ def std_include_dirs():
python_inc_dirs
=
([
py_inc
]
if
py_inc
==
py_plat_spec_inc
python_inc_dirs
=
([
py_inc
]
if
py_inc
==
py_plat_spec_inc
else
[
py_inc
,
py_plat_spec_inc
])
else
[
py_inc
,
py_plat_spec_inc
])
gof_inc_dir
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
gof_inc_dir
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
other_dirs
=
[]
return
numpy_inc_dirs
+
python_inc_dirs
+
[
gof_inc_dir
]
if
sys
.
platform
==
'win32'
:
alt_inc_dir
=
os
.
path
.
abspath
(
os
.
path
.
normpath
(
sys
.
exec_prefix
+
'
\
Library
\
include'
))
if
os
.
path
.
exists
(
alt_inc_dir
)
and
os
.
path
.
isdir
(
alt_inc_dir
):
other_dirs
.
append
(
alt_inc_dir
)
return
numpy_inc_dirs
+
python_inc_dirs
+
[
gof_inc_dir
]
+
other_dirs
def
std_lib_dirs_and_libs
():
def
std_lib_dirs_and_libs
():
...
@@ -1607,9 +1602,6 @@ def std_lib_dirs_and_libs():
...
@@ -1607,9 +1602,6 @@ def std_lib_dirs_and_libs():
# Also add directory containing the Python library to the library
# Also add directory containing the Python library to the library
# directories.
# directories.
python_lib_dirs
=
[
os
.
path
.
join
(
os
.
path
.
dirname
(
python_inc
),
'libs'
)]
python_lib_dirs
=
[
os
.
path
.
join
(
os
.
path
.
dirname
(
python_inc
),
'libs'
)]
alt_inc_dir
=
os
.
path
.
abspath
(
os
.
path
.
normpath
(
sys
.
exec_prefix
+
'
\
Library
\
lib'
))
if
os
.
path
.
exists
(
alt_inc_dir
)
and
os
.
path
.
isdir
(
alt_inc_dir
):
python_lib_dirs
.
append
(
alt_inc_dir
)
if
"Canopy"
in
python_lib_dirs
[
0
]:
if
"Canopy"
in
python_lib_dirs
[
0
]:
# Canopy stores libpython27.a and libmsccr90.a in this directory.
# Canopy stores libpython27.a and libmsccr90.a in this directory.
# For some reason, these files are needed when compiling Python
# For some reason, these files are needed when compiling Python
...
...
theano/gpuarray/type.py
浏览文件 @
c138b770
from
__future__
import
absolute_import
,
print_function
,
division
from
__future__
import
absolute_import
,
print_function
,
division
import
sys
,
os
import
numpy
as
np
import
numpy
as
np
import
six.moves.copyreg
as
copyreg
import
six.moves.copyreg
as
copyreg
from
six
import
iteritems
from
six
import
iteritems
...
@@ -470,7 +471,19 @@ class GpuArrayType(Type):
...
@@ -470,7 +471,19 @@ class GpuArrayType(Type):
'<gpuarray_api.h>'
]
'<gpuarray_api.h>'
]
def
c_header_dirs
(
self
):
def
c_header_dirs
(
self
):
return
[
pygpu
.
get_include
(),
np
.
get_include
()]
other_dirs
=
[]
if
sys
.
platform
==
'win32'
:
alt_inc_dir
=
os
.
path
.
abspath
(
os
.
path
.
normpath
(
sys
.
exec_prefix
+
'
\
Library
\
include'
))
if
os
.
path
.
exists
(
alt_inc_dir
)
and
os
.
path
.
isdir
(
alt_inc_dir
):
other_dirs
.
append
(
alt_inc_dir
)
return
[
pygpu
.
get_include
(),
numpy
.
get_include
()]
+
other_dirs
def
c_lib_dirs
(
self
):
if
sys
.
platform
==
'win32'
:
alt_lib_dir
=
os
.
path
.
abspath
(
os
.
path
.
normpath
(
sys
.
exec_prefix
+
'
\
Library
\
lib'
))
if
os
.
path
.
exists
(
alt_lib_dir
)
and
os
.
path
.
isdir
(
alt_lib_dir
):
return
[
alt_lib_dir
]
return
[]
def
c_libraries
(
self
):
def
c_libraries
(
self
):
return
[
'gpuarray'
]
return
[
'gpuarray'
]
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论