Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pycodegen
pystencils
Commits
ff05f9d8
Commit
ff05f9d8
authored
Dec 19, 2020
by
Markus Holzer
Browse files
Merge branch 'master' into 'master'
Fixes for Vector Testcase to Work See merge request
!200
parents
e20f82a3
40af81fe
Pipeline
#28821
failed with stages
in 9 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pystencils/kerncraft_coupling/kerncraft_interface.py
View file @
ff05f9d8
...
...
@@ -342,7 +342,7 @@ class PyStencilsKerncraftKernel(KernelCode):
class
KerncraftParameters
(
DotDict
):
def
__init__
(
self
,
**
kwargs
):
super
(
KerncraftParameters
,
self
).
__init__
(
**
kwargs
)
super
(
KerncraftParameters
,
self
).
__init__
()
self
[
'asm_block'
]
=
'auto'
self
[
'asm_increment'
]
=
0
self
[
'cores'
]
=
1
...
...
@@ -353,6 +353,7 @@ class KerncraftParameters(DotDict):
self
[
'unit'
]
=
'cy/CL'
self
[
'ignore_warnings'
]
=
True
self
[
'incore_model'
]
=
'OSACA'
self
.
update
(
**
kwargs
)
# ------------------------------------------- Helper functions ---------------------------------------------------------
...
...
pystencils/sympyextensions.py
View file @
ff05f9d8
...
...
@@ -10,7 +10,7 @@ from sympy.functions import Abs
from
sympy.core.numbers
import
Zero
from
pystencils.assignment
import
Assignment
from
pystencils.data_types
import
cast_func
,
get_type_of_expression
,
PointerType
from
pystencils.data_types
import
cast_func
,
get_type_of_expression
,
PointerType
,
VectorType
from
pystencils.kernelparameters
import
FieldPointerSymbol
T
=
TypeVar
(
'T'
)
...
...
@@ -465,6 +465,8 @@ def count_operations(term: Union[sp.Expr, List[sp.Expr]],
base_type
=
get_type_of_expression
(
e
)
except
ValueError
:
return
False
if
isinstance
(
base_type
,
VectorType
):
return
False
if
isinstance
(
base_type
,
PointerType
):
return
only_type
==
'int'
if
only_type
==
'int'
and
(
base_type
.
is_int
()
or
base_type
.
is_uint
()):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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