Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
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
Show more breadcrumbs
pycodegen
pystencils
Commits
50cc5fcc
Commit
50cc5fcc
authored
9 months ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Clean up
parent
f04224a8
No related branches found
No related tags found
1 merge request
!412
[FIX] Vector Size for SVE instruction set is in free kernel parameters
Pipeline
#69246
canceled
9 months ago
Stage: pretest
Stage: test
Stage: docs
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pystencils/backends/arm_instruction_sets.py
+3
-1
3 additions, 1 deletion
src/pystencils/backends/arm_instruction_sets.py
src/pystencils/backends/riscv_instruction_sets.py
+3
-1
3 additions, 1 deletion
src/pystencils/backends/riscv_instruction_sets.py
with
6 additions
and
2 deletions
src/pystencils/backends/arm_instruction_sets.py
+
3
−
1
View file @
50cc5fcc
from
pystencils.typing
import
CFunction
def
get_argument_string
(
function_shortcut
,
first
=
''
):
args
=
function_shortcut
[
function_shortcut
.
index
(
'
[
'
)
+
1
:
-
1
]
arg_string
=
"
(
"
...
...
@@ -87,7 +90,6 @@ def get_vector_instruction_set_arm(data_type='double', instruction_set='neon'):
result
[
intrinsic_id
]
=
prefix
+
name
+
suffix
+
undef
+
arg_string
if
instruction_set
in
[
'
sve
'
,
'
sme
'
]:
from
pystencils.backends.cbackend
import
CFunction
result
[
'
width
'
]
=
CFunction
(
width
,
"
int
"
)
result
[
'
intwidth
'
]
=
CFunction
(
intwidth
,
"
int
"
)
else
:
...
...
This diff is collapsed.
Click to expand it.
src/pystencils/backends/riscv_instruction_sets.py
+
3
−
1
View file @
50cc5fcc
from
pystencils.typing
import
CFunction
def
get_argument_string
(
function_shortcut
,
last
=
''
):
args
=
function_shortcut
[
function_shortcut
.
index
(
'
[
'
)
+
1
:
-
1
]
arg_string
=
"
(
"
...
...
@@ -78,7 +81,6 @@ def get_vector_instruction_set_riscv(data_type='double', instruction_set='rvv'):
result
[
intrinsic_id
]
=
prefix
+
name
+
suffix2
+
arg_string
from
pystencils.backends.cbackend
import
CFunction
result
[
'
width
'
]
=
CFunction
(
width
,
"
int
"
)
result
[
'
intwidth
'
]
=
CFunction
(
intwidth
,
"
int
"
)
...
...
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