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
02ba90c1
Commit
02ba90c1
authored
1 month ago
by
rarbore2
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix_einsum' into 'main'
Fix crash in einsum See merge request
!141
parents
3d380bdf
6e002e30
No related branches found
No related tags found
1 merge request
!141
Fix crash in einsum
Pipeline
#201330
passed
1 month ago
Stage: test
Changes
2
Pipelines
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 @
02ba90c1
test-
job
:
test-
cpu
:
stage
:
test
script
:
-
cargo test --features=opencv
test-gpu
:
stage
:
test
script
:
-
cargo test --features=cuda,opencv
This diff is collapsed.
Click to expand it.
hercules_ir/src/einsum.rs
+
2
−
3
View file @
02ba90c1
...
...
@@ -235,12 +235,11 @@ impl<'a> EinsumContext<'a> {
control
:
_
,
init
:
_
,
reduct
:
_
,
}
=>
{
let
reduce
=
self
.so_far
[
&
id
];
}
if
let
Some
(
reduce
)
=
self
.so_far
.get
(
&
id
)
=>
{
// Substitute opaque uses of thread ID nodes in inner expression
// with thread ID math expression, and increment inner-fork
// dimensions (alpha renaming).
return
self
.substitute_new_dims
(
reduce
);
return
self
.substitute_new_dims
(
*
reduce
);
}
_
=>
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