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
c2381e10
Commit
c2381e10
authored
Sep 12, 2018
by
mei-ye
Browse files
staging
parent
029b1e64
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
src/include/migraph/memory_coloring.hpp
src/include/migraph/memory_coloring.hpp
+17
-0
src/include/migraph/pass_config.hpp
src/include/migraph/pass_config.hpp
+11
-0
No files found.
src/include/migraph/memory_coloring.hpp
0 → 100644
View file @
c2381e10
#ifndef MIGRAPH_GUARD_RTGLIB_MEMORY_COLORING_HPP
#define MIGRAPH_GUARD_RTGLIB_MEMORY_COLORING_HPP
#include <string>
#include <migraph/instruction_ref.hpp>
namespace
migraph
{
struct
program
;
struct
memory_coloring
{
std
::
string
name
()
const
{
return
"memory coloring"
;
}
void
apply
(
program
&
p
)
const
;
};
}
// namespace migraph
#endif
src/
targets/gpu
/pass_config.h
→
src/
include/migraph
/pass_config.h
pp
View file @
c2381e10
#ifndef MIGRAPH_GUARD_PASS_CONFIG_HPP
#define MIGRAPH_GUARD_PASS_CONFIG_HPP
#include <migraph/env.hpp>
#include <migraph/env.hpp>
name
p
sace
migraph
{
names
p
ace
migraph
{
MIGRAPH_DECLARE_ENV_VAR
(
MIGRAPH_DISABLE_MEMORY_COLORING
)
MIGRAPH_DECLARE_ENV_VAR
(
MIGRAPH_DISABLE_MEMORY_COLORING
)
}
//namspace migraph
}
// namespace migraph
#endif // MIGRAPH_GUARD_PASS_CONFIG_HPP
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