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
d918b57f
Commit
d918b57f
authored
Nov 06, 2018
by
Shucai Xiao
Browse files
fixed the format error related to clang-tidy.
parent
8259bf56
Changes
56
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
38 additions
and
38 deletions
+38
-38
src/include/migraph/type_traits.hpp
src/include/migraph/type_traits.hpp
+1
-1
src/instruction.cpp
src/instruction.cpp
+2
-2
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+2
-2
src/opt/common_header.hpp
src/opt/common_header.hpp
+1
-1
src/opt/memory_coloring.cpp
src/opt/memory_coloring.cpp
+2
-2
src/opt/memory_coloring_impl.cpp
src/opt/memory_coloring_impl.cpp
+2
-2
src/program.cpp
src/program.cpp
+2
-2
src/shape.cpp
src/shape.cpp
+2
-2
src/simplify_algebra.cpp
src/simplify_algebra.cpp
+2
-2
src/simplify_reshapes.cpp
src/simplify_reshapes.cpp
+2
-2
src/targets/cpu/gemm.cpp
src/targets/cpu/gemm.cpp
+2
-2
src/targets/cpu/lowering.cpp
src/targets/cpu/lowering.cpp
+2
-2
src/targets/cpu/target.cpp
src/targets/cpu/target.cpp
+2
-2
src/targets/gpu/add.cpp
src/targets/gpu/add.cpp
+2
-2
src/targets/gpu/batchnorm.cpp
src/targets/gpu/batchnorm.cpp
+2
-2
src/targets/gpu/concat.cpp
src/targets/gpu/concat.cpp
+2
-2
src/targets/gpu/contiguous.cpp
src/targets/gpu/contiguous.cpp
+2
-2
src/targets/gpu/convolution.cpp
src/targets/gpu/convolution.cpp
+2
-2
src/targets/gpu/device/add.cpp
src/targets/gpu/device/add.cpp
+2
-2
src/targets/gpu/device/add_relu.cpp
src/targets/gpu/device/add_relu.cpp
+2
-2
No files found.
src/include/migraph/type_traits.hpp
View file @
d918b57f
...
@@ -30,7 +30,7 @@ MIGRAPH_DETAIL_EXTEND_TRAIT_FOR(is_floating_point, half)
...
@@ -30,7 +30,7 @@ MIGRAPH_DETAIL_EXTEND_TRAIT_FOR(is_floating_point, half)
MIGRAPH_DETAIL_EXTEND_TRAIT_FOR
(
is_signed
,
half
)
MIGRAPH_DETAIL_EXTEND_TRAIT_FOR
(
is_signed
,
half
)
MIGRAPH_DETAIL_EXTEND_TRAIT_FOR
(
is_arithmetic
,
half
)
MIGRAPH_DETAIL_EXTEND_TRAIT_FOR
(
is_arithmetic
,
half
)
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
#endif
#endif
src/instruction.cpp
View file @
d918b57f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
#include <migraph/erase.hpp>
#include <migraph/erase.hpp>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
instruction
::
instruction
(
operation
o
,
shape
r
,
std
::
vector
<
instruction_ref
>
args
)
instruction
::
instruction
(
operation
o
,
shape
r
,
std
::
vector
<
instruction_ref
>
args
)
:
op
(
std
::
move
(
o
)),
result
(
std
::
move
(
r
)),
arguments
(
std
::
move
(
args
))
:
op
(
std
::
move
(
o
)),
result
(
std
::
move
(
r
)),
arguments
(
std
::
move
(
args
))
...
@@ -183,5 +183,5 @@ shape compute_shape(const operation& op, const std::vector<instruction_ref>& arg
...
@@ -183,5 +183,5 @@ shape compute_shape(const operation& op, const std::vector<instruction_ref>& arg
return
op
.
compute_shape
(
compute_shapes
(
args
));
return
op
.
compute_shape
(
compute_shapes
(
args
));
}
}
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/onnx/onnx.cpp
View file @
d918b57f
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#include <migraph/config.hpp>
#include <migraph/config.hpp>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
unknown
struct
unknown
{
{
std
::
string
op
;
std
::
string
op
;
...
@@ -626,5 +626,5 @@ program parse_onnx(const std::string& name)
...
@@ -626,5 +626,5 @@ program parse_onnx(const std::string& name)
return
std
::
move
(
parser
.
prog
);
return
std
::
move
(
parser
.
prog
);
}
}
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/opt/common_header.hpp
View file @
d918b57f
...
@@ -24,7 +24,7 @@ inline namespace MIGRAPH_INLINE_NS {
...
@@ -24,7 +24,7 @@ inline namespace MIGRAPH_INLINE_NS {
#define MIGRAPH_DEBUG(s)
#define MIGRAPH_DEBUG(s)
#endif // MIGRAPH_DEBUG_OPT
#endif // MIGRAPH_DEBUG_OPT
}
//
inline
namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
#endif // MIGRAPH_GUARD_RTGLIB_COMMON_HEADER_HPP
#endif // MIGRAPH_GUARD_RTGLIB_COMMON_HEADER_HPP
src/opt/memory_coloring.cpp
View file @
d918b57f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#include "memory_coloring_impl.hpp"
#include "memory_coloring_impl.hpp"
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
void
memory_coloring
::
apply
(
program
&
p
)
const
void
memory_coloring
::
apply
(
program
&
p
)
const
{
{
...
@@ -13,5 +13,5 @@ void memory_coloring::apply(program& p) const
...
@@ -13,5 +13,5 @@ void memory_coloring::apply(program& p) const
}
}
}
}
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/opt/memory_coloring_impl.cpp
View file @
d918b57f
#include "memory_coloring_impl.hpp"
#include "memory_coloring_impl.hpp"
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
void
memory_coloring_impl
::
run
()
void
memory_coloring_impl
::
run
()
{
{
...
@@ -359,5 +359,5 @@ void live_interval::dump()
...
@@ -359,5 +359,5 @@ void live_interval::dump()
#endif
#endif
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/program.cpp
View file @
d918b57f
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#include <utility>
#include <utility>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
MIGRAPH_DECLARE_ENV_VAR
(
MIGRAPH_TRACE_COMPILE
)
MIGRAPH_DECLARE_ENV_VAR
(
MIGRAPH_TRACE_COMPILE
)
MIGRAPH_DECLARE_ENV_VAR
(
MIGRAPH_TRACE_EVAL
)
MIGRAPH_DECLARE_ENV_VAR
(
MIGRAPH_TRACE_EVAL
)
...
@@ -500,5 +500,5 @@ std::ostream& operator<<(std::ostream& os, const program& p)
...
@@ -500,5 +500,5 @@ std::ostream& operator<<(std::ostream& os, const program& p)
return
os
;
return
os
;
}
}
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/shape.cpp
View file @
d918b57f
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#include <iostream>
#include <iostream>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
shape_impl
struct
shape_impl
{
{
...
@@ -191,5 +191,5 @@ std::ostream& operator<<(std::ostream& os, const shape& x)
...
@@ -191,5 +191,5 @@ std::ostream& operator<<(std::ostream& os, const shape& x)
return
os
;
return
os
;
}
}
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/simplify_algebra.cpp
View file @
d918b57f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#include <migraph/literal.hpp>
#include <migraph/literal.hpp>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
find_add_lit_broadcast
struct
find_add_lit_broadcast
{
{
...
@@ -61,5 +61,5 @@ struct find_add_lit_broadcast
...
@@ -61,5 +61,5 @@ struct find_add_lit_broadcast
void
simplify_algebra
::
apply
(
program
&
p
)
const
{
match
::
find_matches
(
p
,
find_add_lit_broadcast
{});
}
void
simplify_algebra
::
apply
(
program
&
p
)
const
{
match
::
find_matches
(
p
,
find_add_lit_broadcast
{});
}
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/simplify_reshapes.cpp
View file @
d918b57f
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#include <unordered_set>
#include <unordered_set>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
bool
is_reshaper
(
const
std
::
string
&
name
)
bool
is_reshaper
(
const
std
::
string
&
name
)
{
{
...
@@ -60,5 +60,5 @@ void simplify_reshapes::apply(program& p) const
...
@@ -60,5 +60,5 @@ void simplify_reshapes::apply(program& p) const
}
}
}
}
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/targets/cpu/gemm.cpp
View file @
d918b57f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#include <blaze/math/CustomMatrix.h>
#include <blaze/math/CustomMatrix.h>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
cpu
{
namespace
cpu
{
template
<
class
T
>
template
<
class
T
>
...
@@ -94,5 +94,5 @@ void migemm(
...
@@ -94,5 +94,5 @@ void migemm(
}
}
}
// namespace cpu
}
// namespace cpu
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/targets/cpu/lowering.cpp
View file @
d918b57f
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#include <utility>
#include <utility>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
cpu
{
namespace
cpu
{
template
<
typename
T
>
template
<
typename
T
>
...
@@ -658,5 +658,5 @@ struct cpu_apply
...
@@ -658,5 +658,5 @@ struct cpu_apply
void
lowering
::
apply
(
program
&
p
)
const
{
cpu_apply
{
&
p
}.
apply
();
}
void
lowering
::
apply
(
program
&
p
)
const
{
cpu_apply
{
&
p
}.
apply
();
}
}
// namespace cpu
}
// namespace cpu
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/targets/cpu/target.cpp
View file @
d918b57f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#include <migraph/auto_contiguous.hpp>
#include <migraph/auto_contiguous.hpp>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
cpu
{
namespace
cpu
{
std
::
string
target
::
name
()
const
{
return
"cpu"
;
}
std
::
string
target
::
name
()
const
{
return
"cpu"
;
}
...
@@ -15,5 +15,5 @@ std::vector<pass> target::get_passes(migraph::context&) const
...
@@ -15,5 +15,5 @@ std::vector<pass> target::get_passes(migraph::context&) const
}
}
}
// namespace cpu
}
// namespace cpu
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/targets/gpu/add.cpp
View file @
d918b57f
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
#include <utility>
#include <utility>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
gpu
{
namespace
gpu
{
shape
hip_add
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
shape
hip_add
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
...
@@ -51,5 +51,5 @@ argument miopen_add::compute(context& ctx,
...
@@ -51,5 +51,5 @@ argument miopen_add::compute(context& ctx,
}
}
}
// namespace gpu
}
// namespace gpu
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/targets/gpu/batchnorm.cpp
View file @
d918b57f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#include <utility>
#include <utility>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
gpu
{
namespace
gpu
{
shape
miopen_batch_norm_inference
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
shape
miopen_batch_norm_inference
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
...
@@ -43,5 +43,5 @@ argument miopen_batch_norm_inference::compute(context& ctx,
...
@@ -43,5 +43,5 @@ argument miopen_batch_norm_inference::compute(context& ctx,
}
}
}
// namespace gpu
}
// namespace gpu
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/targets/gpu/concat.cpp
View file @
d918b57f
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
#include <utility>
#include <utility>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
gpu
{
namespace
gpu
{
shape
hip_concat
::
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
shape
hip_concat
::
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
...
@@ -24,5 +24,5 @@ argument hip_concat::compute(context& ctx,
...
@@ -24,5 +24,5 @@ argument hip_concat::compute(context& ctx,
}
}
}
// namespace gpu
}
// namespace gpu
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/targets/gpu/contiguous.cpp
View file @
d918b57f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#include <utility>
#include <utility>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
gpu
{
namespace
gpu
{
shape
miopen_contiguous
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
shape
miopen_contiguous
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
...
@@ -25,5 +25,5 @@ argument miopen_contiguous::compute(context& ctx,
...
@@ -25,5 +25,5 @@ argument miopen_contiguous::compute(context& ctx,
}
}
}
// namespace gpu
}
// namespace gpu
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/targets/gpu/convolution.cpp
View file @
d918b57f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#include <utility>
#include <utility>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
gpu
{
namespace
gpu
{
shape
miopen_convolution
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
shape
miopen_convolution
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
...
@@ -82,5 +82,5 @@ shape miopen_convolution::compile(context& ctx,
...
@@ -82,5 +82,5 @@ shape miopen_convolution::compile(context& ctx,
}
}
}
// namespace gpu
}
// namespace gpu
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/targets/gpu/device/add.cpp
View file @
d918b57f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#include <migraph/gpu/device/nary.hpp>
#include <migraph/gpu/device/nary.hpp>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
gpu
{
namespace
gpu
{
namespace
device
{
namespace
device
{
...
@@ -22,5 +22,5 @@ void add(hipStream_t stream,
...
@@ -22,5 +22,5 @@ void add(hipStream_t stream,
}
// namespace device
}
// namespace device
}
// namespace gpu
}
// namespace gpu
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
src/targets/gpu/device/add_relu.cpp
View file @
d918b57f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#include <migraph/gpu/device/nary.hpp>
#include <migraph/gpu/device/nary.hpp>
namespace
migraph
{
namespace
migraph
{
inline
namespace
version_1
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
gpu
{
namespace
gpu
{
namespace
device
{
namespace
device
{
...
@@ -27,5 +27,5 @@ void add_relu(hipStream_t stream,
...
@@ -27,5 +27,5 @@ void add_relu(hipStream_t stream,
}
// namespace device
}
// namespace device
}
// namespace gpu
}
// namespace gpu
}
// namespace
version_1
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
Prev
1
2
3
Next
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