Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pycodegen
pystencils_autodiff
Commits
086603bd
Commit
086603bd
authored
Aug 17, 2019
by
Stephan Seitz
Browse files
Add Travis build with pystencils from pip
parent
2652d069
Pipeline
#17340
failed with stage
in 3 minutes and 35 seconds
Changes
5
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
086603bd
...
...
@@ -14,11 +14,18 @@ addons:
update
:
true
matrix
:
fast_finish
:
true
allow_failures
:
-
name
:
"
Pystencils
from
pip"
include
:
-
python
:
3.6
env
:
DISTRIB="ubuntu" TOX_PYTHON_VERSION="py36" COVERAGE="true" LINT="false"
before_install
:
-
sudo apt-get install -y ninja-build build-essential nvidia-cuda-toolkit
-
python
:
3.6
name
:
"
Pystencils
from
pip"
env
:
DISTRIB="ubuntu" TOX_PYTHON_VERSION="py36" COVERAGE="true" LINT="false" PYSTENCIL_FROM_PIP="true"
before_install
:
-
sudo apt-get install -y ninja-build build-essential nvidia-cuda-toolkit
-
name
:
"
Conda"
env
:
DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="false" LINT="false"
before_install
:
...
...
tests/backends/test_torch_native_compilation.py
View file @
086603bd
...
...
@@ -194,12 +194,3 @@ def test_execute_torch_gpu():
print
(
y_tensor
)
print
(
rtn
)
def
main
():
test_jit
()
test_torch_native_compilation
()
# test_generate_torch()
# test_execute_torch()
main
()
tests/test_autodiff.py
View file @
086603bd
...
...
@@ -50,11 +50,3 @@ def test_simple_2d_check_raw_assignments():
pystencils_autodiff
.
create_backward_assignments
(
forward_assignments
,
diff_mode
=
diff_mode
)
def
main
():
test_simple_2d_check_assignment_collection
()
test_simple_2d_check_raw_assignments
()
if
__name__
==
'__main__'
:
main
()
tests/test_tfmad.py
View file @
086603bd
...
...
@@ -247,14 +247,3 @@ def test_tfmad_two_outputs():
print
(
curl_op
.
backward_assignments
)
def
main
():
# test_tfmad_stencil()
# test_tfmad_two_stencils()
# test_tfmad_gradient_check_torch()
test_tfmad_gradient_check
()
# test_tfmad_vector_input_data()
# test_tfmad_two_outputs()
if
__name__
==
'__main__'
:
main
()
tests/travis_install.sh
View file @
086603bd
...
...
@@ -45,8 +45,12 @@ pip install -U pip setuptools
pip
install
tox
pip
install
codecov
pip
install
sphinx
# use newest pystencils
pip
install
git+https://github.com/mabau/pystencils.git
if
[[
-z
"
$PYSTENCIL_FROM_PIP
"
]]
;
then
pip
install
git+https://github.com/mabau/pystencils.git
else
pip
install
pystencils
fi
pip
install
flake8
if
[[
"
$COVERAGE
"
==
"true"
]]
;
then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment