Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
32c235a0
提交
32c235a0
authored
7月 28, 2016
作者:
slefrancois
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added comments to scripts
上级
35af492b
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
54 行增加
和
48 行删除
+54
-48
jenkins_pretest.sh
.jenkins/jenkins_pretest.sh
+2
-0
jenkins_test1.sh
.jenkins/jenkins_test1.sh
+7
-43
jenkins_test2.sh
.jenkins/jenkins_test2.sh
+45
-5
没有找到文件。
.jenkins/jenkins_pretest.sh
浏览文件 @
32c235a0
...
@@ -5,7 +5,9 @@
...
@@ -5,7 +5,9 @@
source
~/.bashrc
source
~/.bashrc
# Test flake8
# Test flake8
echo
"===== Testing flake8"
bin/theano-nose theano/tests/test_flake8.py
bin/theano-nose theano/tests/test_flake8.py
# Test documentation
# Test documentation
echo
"===== Testing documentation"
python doc/scripts/docgen.py
--nopdf
--check
python doc/scripts/docgen.py
--nopdf
--check
python doc/scripts/docgen.py
--test
--check
python doc/scripts/docgen.py
--test
--check
.jenkins/jenkins_test1.sh
浏览文件 @
32c235a0
#!/bin/bash
#!/bin/bash
# Script for Jenkins continuous integration testing of gpuarray backend
# Script for Jenkins continuous integration testing of theano base and old backend
echo
"===== Testing theano base"
# Get environment from worker, necessary for CUDA
# Get environment from worker, necessary for CUDA
source
~/.bashrc
source
~/.bashrc
GPUARRAY_CONFIG
=
"Release"
# Test theano CPU and old GPU backend sandbox.cuda
DEVICE
=
cuda0
THEANO_PARAM
=
"theano --with-timer --timer-top-n 10"
LIBDIR
=
~/tmp/local
FLAGS
=
"mode=FAST_RUN,init_gpu_device=gpu"
THEANO_FLAGS
=
${
FLAGS
}
bin/theano-nose
${
THEANO_PARAM
}
# Make fresh clones of libgpuarray (with no history since we don't need it)
rm
-rf
libgpuarray
git clone
--depth
1
"https://github.com/Theano/libgpuarray.git"
# Clean up previous installs (to make sure no old files are left)
rm
-rf
$LIBDIR
mkdir
$LIBDIR
# Build libgpuarray
mkdir
libgpuarray/build
(
cd
libgpuarray/build
&&
cmake ..
-DCMAKE_BUILD_TYPE
=
${
GPUARRAY_CONFIG
}
-DCMAKE_INSTALL_PREFIX
=
$LIBDIR
&&
make
)
# Finally install
(
cd
libgpuarray/build
&&
make
install
)
# Export paths
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:
$LIBDIR
/lib64/
export
LIBRARY_PATH
=
$LIBRARY_PATH
:
$LIBDIR
/lib64/
export
CPATH
=
$CPATH
:
$LIBDIR
/include
export
LIBRARY_PATH
=
$LIBRARY_PATH
:
$LIBDIR
/lib
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:
$LIBDIR
/lib
# Build the pygpu modules
(
cd
libgpuarray
&&
python setup.py build_ext
--inplace
-I
$LIBDIR
/include
-L
$LIBDIR
/lib
)
ls
$LIBDIR
mkdir
$LIBDIR
/lib/python
export
PYTHONPATH
=
${
PYTHONPATH
}
:
$LIBDIR
/lib/python
# Then install
(
cd
libgpuarray
&&
python setup.py
install
--home
=
$LIBDIR
)
# Test libgpuarray and pygpu
#(cd libgpuarray/build && DEVICE=$DEVICE make test)
#DEVICE=$DEVICE python -c "import pygpu;pygpu.test()"
# Testing theano (the gpuarray parts)
THEANO_GPUARRAY_TESTS
=
"theano/gpuarray/tests theano/sandbox/tests/test_rng_mrg.py:test_consistency_GPUA_serial theano/sandbox/tests/test_rng_mrg.py:test_consistency_GPUA_parallel theano/scan_module/tests/test_scan.py:T_Scan_Gpuarray"
FLAGS
=
"init_gpu_device=
$DEVICE
,gpuarray.preallocate=1000,mode=FAST_RUN"
THEANO_FLAGS
=
${
FLAGS
}
time
nosetests
-v
${
THEANO_GPUARRAY_TESTS
}
.jenkins/jenkins_test2.sh
浏览文件 @
32c235a0
#!/bin/bash
#!/bin/bash
# Script for Jenkins continuous integration testing of theano base and old backend
# Script for Jenkins continuous integration testing of gpuarray backend
echo
"===== Testing gpuarray backend"
# Get environment from worker, necessary for CUDA
# Get environment from worker, necessary for CUDA
source
~/.bashrc
source
~/.bashrc
# Test theano CPU and old GPU backend sandbox.cuda
GPUARRAY_CONFIG
=
"Release"
THEANO_PARAM
=
"theano --with-timer --timer-top-n 10"
DEVICE
=
cuda0
FLAGS
=
"mode=FAST_RUN,init_gpu_device=gpu"
LIBDIR
=
~/tmp/local
THEANO_FLAGS
=
${
FLAGS
}
bin/theano-nose
${
THEANO_PARAM
}
# Make fresh clones of libgpuarray (with no history since we don't need it)
rm
-rf
libgpuarray
git clone
--depth
1
"https://github.com/Theano/libgpuarray.git"
# Clean up previous installs (to make sure no old files are left)
rm
-rf
$LIBDIR
mkdir
$LIBDIR
# Build libgpuarray
mkdir
libgpuarray/build
(
cd
libgpuarray/build
&&
cmake ..
-DCMAKE_BUILD_TYPE
=
${
GPUARRAY_CONFIG
}
-DCMAKE_INSTALL_PREFIX
=
$LIBDIR
&&
make
)
# Finally install
(
cd
libgpuarray/build
&&
make
install
)
# Export paths
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:
$LIBDIR
/lib64/
export
LIBRARY_PATH
=
$LIBRARY_PATH
:
$LIBDIR
/lib64/
export
CPATH
=
$CPATH
:
$LIBDIR
/include
export
LIBRARY_PATH
=
$LIBRARY_PATH
:
$LIBDIR
/lib
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:
$LIBDIR
/lib
# Build the pygpu modules
(
cd
libgpuarray
&&
python setup.py build_ext
--inplace
-I
$LIBDIR
/include
-L
$LIBDIR
/lib
)
ls
$LIBDIR
mkdir
$LIBDIR
/lib/python
export
PYTHONPATH
=
${
PYTHONPATH
}
:
$LIBDIR
/lib/python
# Then install
(
cd
libgpuarray
&&
python setup.py
install
--home
=
$LIBDIR
)
# Test libgpuarray and pygpu
#(cd libgpuarray/build && DEVICE=$DEVICE make test)
#DEVICE=$DEVICE python -c "import pygpu;pygpu.test()"
# Testing theano (the gpuarray parts)
THEANO_GPUARRAY_TESTS
=
"theano/gpuarray/tests theano/sandbox/tests/test_rng_mrg.py:test_consistency_GPUA_serial theano/sandbox/tests/test_rng_mrg.py:test_consistency_GPUA_parallel theano/scan_module/tests/test_scan.py:T_Scan_Gpuarray"
FLAGS
=
"init_gpu_device=
$DEVICE
,gpuarray.preallocate=1000,mode=FAST_RUN"
THEANO_FLAGS
=
${
FLAGS
}
time
nosetests
-v
${
THEANO_GPUARRAY_TESTS
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论