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
Merge requests
!216
More optimizations
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
More optimizations
more_opt4
into
main
Overview
0
Commits
11
Pipelines
3
Changes
4
Merged
rarbore2
requested to merge
more_opt4
into
main
2 weeks ago
Overview
0
Commits
11
Pipelines
3
Changes
4
Expand
Speedup backprop
Fix gpu backend for different CUDA versions
0
0
Merge request reports
Viewing commit
0107cc1c
Prev
Next
Show latest version
4 files
+
16
−
125
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
0107cc1c
don't build egg for now
· 0107cc1c
Russel Arbore
authored
2 weeks ago
hercules_opt/src/rewrite_math_expressions.rs
+
14
−
1
Options
@@ -3,10 +3,22 @@ use std::fmt::{Error, Write};
use
hercules_ir
::
*
;
use
egg
::
*
;
//
use egg::*;
use
crate
::
*
;
pub
fn
rewrite_math_expressions
(
editor
:
&
mut
FunctionEditor
,
device
:
Device
,
typing
:
&
Vec
<
TypeID
>
,
fork_join_map
:
&
HashMap
<
NodeID
,
NodeID
>
,
nodes_in_fork_joins
:
&
HashMap
<
NodeID
,
HashSet
<
NodeID
>>
,
reduce_einsums
:
&
(
MathEnv
,
HashMap
<
NodeID
,
MathID
>
),
)
{
panic!
(
"PANIC: The rewrite math expressions pass is currently disabled, as including egg increases compile times and we're not using it currently."
);
}
/*
define_language! {
enum MathLanguage {
"zero" = Zero,
@@ -164,3 +176,4 @@ fn egg_print_math_expr<W: Write>(id: MathID, env: &MathEnv, w: &mut W) -> Result
_ => Err(Error::default()),
}
}
*/
Loading