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
ca3de161
Commit
ca3de161
authored
Sep 18, 2018
by
mei-ye
Browse files
remove unneeded changes
parent
bc4b5a7f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
25 deletions
+4
-25
src/include/migraph/pass.hpp
src/include/migraph/pass.hpp
+1
-0
src/include/migraph/target.hpp
src/include/migraph/target.hpp
+1
-0
src/targets/cpu/include/migraph/cpu/context.hpp
src/targets/cpu/include/migraph/cpu/context.hpp
+1
-3
src/targets/cpu/include/migraph/cpu_target.hpp
src/targets/cpu/include/migraph/cpu_target.hpp
+0
-21
test/dead_code_elimination_test.cpp
test/dead_code_elimination_test.cpp
+1
-1
No files found.
src/include/migraph/pass.hpp
View file @
ca3de161
...
...
@@ -215,6 +215,7 @@ inline const ValueType& any_cast(const pass& x)
}
#endif
}
// namespace migraph
#endif
src/include/migraph/target.hpp
View file @
ca3de161
...
...
@@ -241,6 +241,7 @@ inline const ValueType& any_cast(const target& x)
}
#endif
}
// namespace migraph
#endif
src/targets/cpu/include/migraph/cpu/context.hpp
View file @
ca3de161
#ifndef MIGRAPH_GUARD_RTGLIB_CONTEXT_HPP
#define MIGRAPH_GUARD_RTGLIB_CONTEXT_HPP
#include <migraph/argument.hpp>
#include <unordered_map>
namespace
migraph
{
namespace
cpu
{
...
...
@@ -11,6 +8,7 @@ struct context
{
void
finish
()
const
{}
};
}
// namespace cpu
}
// namespace migraph
...
...
src/targets/cpu/include/migraph/cpu_target.hpp
deleted
100644 → 0
View file @
bc4b5a7f
#ifndef MIGRAPH_GUARD_MIGRAPHLIB_CPU_TARGET_HPP
#define MIGRAPH_GUARD_MIGRAPHLIB_CPU_TARGET_HPP
#include <migraph/program.hpp>
#include <migraph/cpu/context.hpp>
namespace
migraph
{
namespace
cpu
{
struct
cpu_target
{
std
::
string
name
()
const
;
std
::
vector
<
pass
>
get_passes
(
migraph
::
context
&
ctx
)
const
;
migraph
::
context
get_context
()
const
{
return
context
{};
}
};
}
// namespace cpu
}
// namespace migraph
#endif
test/dead_code_elimination_test.cpp
View file @
ca3de161
...
...
@@ -9,7 +9,7 @@ struct dce_target
{
return
{
migraph
::
dead_code_elimination
{}};
}
migraph
::
context
get_context
(
migraph
::
parameter_map
)
const
{
return
{};
}
migraph
::
context
get_context
()
const
{
return
{};
}
};
void
simple_test
()
...
...
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