提交 3ea3f06b authored 作者: slefrancois's avatar slefrancois

split test scripts

上级 45b3635e
#!/bin/bash
# Script for Jenkins continuous integration pre-testing
source ~/.bashrc
# Test flake8
bin/theano-nose theano/tests/test_flake8.py
# Test documentation
python doc/scripts/docgen.py --nopdf --check
python doc/scripts/docgen.py --test --check
#!/bin/bash #!/bin/bash
# Script for Jenkins continuous integration testing from Github pull requests # Script for Jenkins continuous integration testing of 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
THEANO_PARAM="theano --with-timer --timer-top-n 10"
FLAGS="mode=FAST_RUN,init_gpu_device=gpu"
THEANO_FLAGS=${FLAGS} bin/theano-nose ${THEANO_PARAM}
# Build libgpuarray and test gpuarray backend
GPUARRAY=none GPUARRAY=none
GPUARRAY_CONFIG="Release" GPUARRAY_CONFIG="Release"
DEVICE=cuda0 DEVICE=cuda0
LIBDIR=~/tmp/local LIBDIR=~/tmp/local
# Make fresh clones (with no history since we don't need it) # Make fresh clones of libgpuarray (with no history since we don't need it)
rm -rf libgpuarray rm -rf libgpuarray
git clone --depth 1 "https://github.com/Theano/libgpuarray.git" git clone --depth 1 "https://github.com/Theano/libgpuarray.git"
...@@ -24,7 +18,7 @@ git clone --depth 1 "https://github.com/Theano/libgpuarray.git" ...@@ -24,7 +18,7 @@ git clone --depth 1 "https://github.com/Theano/libgpuarray.git"
rm -rf $LIBDIR rm -rf $LIBDIR
mkdir $LIBDIR mkdir $LIBDIR
# Build libgpuarray and run C tests # Build libgpuarray
mkdir libgpuarray/build mkdir libgpuarray/build
(cd libgpuarray/build && cmake .. -DCMAKE_BUILD_TYPE=${GPUARRAY_CONFIG} -DCMAKE_INSTALL_PREFIX=$LIBDIR && make) (cd libgpuarray/build && cmake .. -DCMAKE_BUILD_TYPE=${GPUARRAY_CONFIG} -DCMAKE_INSTALL_PREFIX=$LIBDIR && make)
......
#!/bin/bash
# Script for Jenkins continuous integration testing of theano base and old backend
# Get environment from worker, necessary for CUDA
source ~/.bashrc
# Test theano CPU and old GPU backend sandbox.cuda
THEANO_PARAM="theano --with-timer --timer-top-n 10"
FLAGS="mode=FAST_RUN,init_gpu_device=gpu"
THEANO_FLAGS=${FLAGS} bin/theano-nose ${THEANO_PARAM}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论