Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pystencils_autodiff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
pycodegen
pystencils_autodiff
Commits
96b29fb1
Commit
96b29fb1
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Skip test_dynamic_function
parent
11f45c49
No related branches found
No related tags found
No related merge requests found
Pipeline
#22352
failed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_dynamic_function.py
+18
-6
18 additions, 6 deletions
tests/test_dynamic_function.py
with
18 additions
and
6 deletions
tests/test_dynamic_function.py
+
18
−
6
View file @
96b29fb1
...
...
@@ -3,8 +3,7 @@ import sympy as sp
import
pystencils
from
pystencils.data_types
import
TypedSymbol
,
create_type
from
pystencils_autodiff.framework_integration.astnodes
import
DynamicFunction
from
pystencils_autodiff.framework_integration.printer
import
(
DebugFrameworkPrinter
,
FrameworkIntegrationPrinter
)
from
pystencils_autodiff.framework_integration.printer
import
FrameworkIntegrationPrinter
from
pystencils_autodiff.framework_integration.types
import
CustomCppType
,
TemplateType
...
...
@@ -32,12 +31,15 @@ def test_dynamic_function():
ast
=
pystencils
.
create_kernel
(
assignments
)
pystencils
.
show_code
(
ast
,
custom_backend
=
FrameworkIntegrationPrinter
())
pystencils
.
show_code
(
ast
,
custom_backend
=
DebugFrameworkPrinter
())
def
test_dynamic_matrix
():
x
,
y
=
pystencils
.
fields
(
'
x, y: float32[3d]
'
)
from
pystencils.data_types
import
TypedMatrixSymbol
try
:
from
pystencils.data_types
import
TypedMatrixSymbol
except
ImportError
:
import
pytest
pytest
.
skip
()
a
=
sp
.
symbols
(
'
a
'
)
...
...
@@ -56,8 +58,13 @@ def test_dynamic_matrix():
def
test_typed_matrix
():
try
:
from
pystencils.data_types
import
TypedMatrixSymbol
except
ImportError
:
import
pytest
pytest
.
skip
()
x
,
y
=
pystencils
.
fields
(
'
x, y: float32[3d]
'
)
from
pystencils.data_types
import
TypedMatrixSymbol
A
=
TypedMatrixSymbol
(
'
A
'
,
3
,
1
,
create_type
(
'
double
'
),
CustomCppType
(
'
Vector3<real_t>
'
))
...
...
@@ -70,8 +77,13 @@ def test_typed_matrix():
def
test_dynamic_matrix_location_dependent
():
try
:
from
pystencils.data_types
import
TypedMatrixSymbol
except
ImportError
:
import
pytest
pytest
.
skip
()
x
,
y
=
pystencils
.
fields
(
'
x, y: float32[3d]
'
)
from
pystencils.data_types
import
TypedMatrixSymbol
A
=
TypedMatrixSymbol
(
'
A
'
,
3
,
1
,
create_type
(
'
double
'
),
CustomCppType
(
'
Vector3<double>
'
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment