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
gaoqiong
MIGraphX
Commits
d1b5f332
Unverified
Commit
d1b5f332
authored
Mar 01, 2023
by
Charlie Lin
Committed by
GitHub
Mar 01, 2023
Browse files
Initial (#1586)
Add additional documentation to explain the passes.
parent
a63ee2e0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
src/include/migraphx/memory_coloring.hpp
src/include/migraphx/memory_coloring.hpp
+2
-1
src/include/migraphx/replace_allocate.hpp
src/include/migraphx/replace_allocate.hpp
+3
-0
src/targets/gpu/include/migraphx/gpu/lowering.hpp
src/targets/gpu/include/migraphx/gpu/lowering.hpp
+7
-0
No files found.
src/include/migraphx/memory_coloring.hpp
View file @
d1b5f332
...
...
@@ -33,7 +33,8 @@ inline namespace MIGRAPHX_INLINE_NS {
struct
module
;
/**
* Remove memory allocations. It uses graph coloring to find memory allocations that can be reused.
* Remove multiple memory allocations using graph coloring to find memory allocations that can be
* reused.
*/
struct
memory_coloring
{
...
...
src/include/migraphx/replace_allocate.hpp
View file @
d1b5f332
...
...
@@ -32,6 +32,9 @@ inline namespace MIGRAPHX_INLINE_NS {
struct
module
;
/**
* Replace `allocate` instructions with target allocations or output parameters.
*/
struct
replace_allocate
{
allocation_model
model
;
...
...
src/targets/gpu/include/migraphx/gpu/lowering.hpp
View file @
d1b5f332
...
...
@@ -33,6 +33,13 @@ inline namespace MIGRAPHX_INLINE_NS {
struct
module
;
namespace
gpu
{
/**
* Compiler pass that makes GPU-specific instruction changes.
* * Copies to and from the device if `offload_copy` is true.
* * Maps instructions to their GPU-specific counterparts.
* * Inserts `allocate` instructions before GPU operators.
*/
struct
lowering
{
context
*
ctx
;
...
...
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