Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
tilelang
Commits
8443d88e
Commit
8443d88e
authored
Apr 16, 2026
by
wangziyang
Browse files
add load share offset from load indices
parent
74e57416
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/transform/inject_ds_read.cc
src/transform/inject_ds_read.cc
+8
-1
No files found.
src/transform/inject_ds_read.cc
View file @
8443d88e
...
...
@@ -103,7 +103,14 @@ class DSReadInjector : public StmtExprMutator {
// For A_shared, use the actual shared memory base pointer
PrimExpr
m
=
make_const
(
DataType
::
Int
(
32
),
32
);
PrimExpr
n
=
make_const
(
DataType
::
Int
(
32
),
16
);
PrimExpr
offset
=
make_const
(
DataType
::
Int
(
32
),
0
);
PrimExpr
offset
;
// Extract the shared memory offset from the load indices
if
(
!
load
->
indices
.
empty
())
{
offset
=
load
->
indices
[
0
];
}
else
{
offset
=
make_const
(
DataType
::
Int
(
32
),
0
);
}
// Use buffer data vars directly
Array
<
PrimExpr
>
new_args
=
{
...
...
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