Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hercules
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
Hercules
Commits
6e002e30
Commit
6e002e30
authored
1 month ago
by
rarbore2
Browse files
Options
Downloads
Patches
Plain Diff
Fix crash in einsum
parent
3d380bdf
No related branches found
No related tags found
1 merge request
!141
Fix crash in einsum
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-1
5 additions, 1 deletion
.gitlab-ci.yml
hercules_ir/src/einsum.rs
+2
-3
2 additions, 3 deletions
hercules_ir/src/einsum.rs
with
7 additions
and
4 deletions
.gitlab-ci.yml
+
5
−
1
View file @
6e002e30
test-
job
:
test-
cpu
:
stage
:
test
stage
:
test
script
:
script
:
-
cargo test --features=opencv
-
cargo test --features=opencv
test-gpu
:
stage
:
test
script
:
-
cargo test --features=cuda,opencv
-
cargo test --features=cuda,opencv
This diff is collapsed.
Click to expand it.
hercules_ir/src/einsum.rs
+
2
−
3
View file @
6e002e30
...
@@ -235,12 +235,11 @@ impl<'a> EinsumContext<'a> {
...
@@ -235,12 +235,11 @@ impl<'a> EinsumContext<'a> {
control
:
_
,
control
:
_
,
init
:
_
,
init
:
_
,
reduct
:
_
,
reduct
:
_
,
}
=>
{
}
if
let
Some
(
reduce
)
=
self
.so_far
.get
(
&
id
)
=>
{
let
reduce
=
self
.so_far
[
&
id
];
// Substitute opaque uses of thread ID nodes in inner expression
// Substitute opaque uses of thread ID nodes in inner expression
// with thread ID math expression, and increment inner-fork
// with thread ID math expression, and increment inner-fork
// dimensions (alpha renaming).
// dimensions (alpha renaming).
return
self
.substitute_new_dims
(
reduce
);
return
self
.substitute_new_dims
(
*
reduce
);
}
}
_
=>
MathExpr
::
OpaqueNode
(
id
),
_
=>
MathExpr
::
OpaqueNode
(
id
),
};
};
...
...
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