Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-codegen
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Christian Heinigk
dune-codegen
Commits
1bd17e88
Commit
1bd17e88
authored
7 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
Fix VCLCast for padded kernels
parent
7d242d08
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/dune/perftool/sumfact/tabulation.py
+2
-2
2 additions, 2 deletions
python/dune/perftool/sumfact/tabulation.py
with
2 additions
and
2 deletions
python/dune/perftool/sumfact/tabulation.py
+
2
−
2
View file @
1bd17e88
...
...
@@ -22,7 +22,7 @@ from dune.perftool.generation import (class_member,
)
from
dune.perftool.loopy.buffer
import
get_buffer_temporary
from
dune.perftool.loopy.target
import
dtype_floatingpoint
from
dune.perftool.loopy.vcl
import
ExplicitVCLCast
from
dune.perftool.loopy.vcl
import
ExplicitVCLCast
,
get_vcl_type_size
from
dune.perftool.pdelab.localoperator
import
(
name_domain_field
,
lop_template_range_field
,
)
...
...
@@ -196,7 +196,7 @@ class BasisTabulationMatrixArray(BasisTabulationMatrixBase):
# Check whether we can realize this by broadcasting the values of a simple tabulation
if
len
(
set
(
self
.
tabs
))
==
1
:
theta
=
self
.
tabs
[
0
].
pymbolic
(
indices
[:
-
1
])
return
prim
.
Call
(
ExplicitVCLCast
(
dtype_floatingpoint
(),
vector_width
=
len
(
self
.
tabs
)),
(
theta
,))
return
prim
.
Call
(
ExplicitVCLCast
(
dtype_floatingpoint
(),
vector_width
=
get_vcl_type_size
(
dtype_floatingpoint
()
)),
(
theta
,))
abbrevs
=
tuple
(
"
{}x{}
"
.
format
(
"
d
"
if
t
.
derivative
else
""
,
"
s{}
"
.
format
(
t
.
slice_index
)
if
t
.
slice_size
is
not
None
else
""
)
...
...
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