Commit d918b57f authored by Shucai Xiao's avatar Shucai Xiao
Browse files

fixed the format error related to clang-tidy.

parent 8259bf56
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <migraph/gpu/device/launch.hpp> #include <migraph/gpu/device/launch.hpp>
namespace migraph { namespace migraph {
inline namespace version_1 { inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
namespace device { namespace device {
...@@ -34,5 +34,5 @@ argument concat(hipStream_t stream, ...@@ -34,5 +34,5 @@ argument concat(hipStream_t stream,
} // namespace device } // namespace device
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,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 {
...@@ -14,5 +14,5 @@ void contiguous(hipStream_t stream, argument result, argument arg) ...@@ -14,5 +14,5 @@ void contiguous(hipStream_t stream, argument result, argument arg)
} // namespace device } // namespace device
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -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 mul(hipStream_t stream, ...@@ -22,5 +22,5 @@ void mul(hipStream_t stream,
} // namespace device } // namespace device
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <migraph/pass_config.hpp> #include <migraph/pass_config.hpp>
namespace migraph { namespace migraph {
inline namespace version_1 { inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
void eliminate_workspace::apply(program& p) const void eliminate_workspace::apply(program& p) const
...@@ -41,5 +41,5 @@ void eliminate_workspace::apply(program& p) const ...@@ -41,5 +41,5 @@ void eliminate_workspace::apply(program& p) const
} }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <migraph/instruction.hpp> #include <migraph/instruction.hpp>
namespace migraph { namespace migraph {
inline namespace version_1 { inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
struct fusion struct fusion
...@@ -382,5 +382,5 @@ void fuse_ops::apply(program& p) const ...@@ -382,5 +382,5 @@ void fuse_ops::apply(program& p) const
} }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -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_gemm::compute_shape(const std::vector<shape>& inputs) const shape miopen_gemm::compute_shape(const std::vector<shape>& inputs) const
...@@ -45,5 +45,5 @@ argument miopen_gemm::compute(context& ctx, ...@@ -45,5 +45,5 @@ argument miopen_gemm::compute(context& ctx,
} }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include <vector> #include <vector>
namespace migraph { namespace migraph {
inline namespace version_1 { inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
using hip_ptr = MIGRAPH_MANAGE_PTR(void, hipFree); using hip_ptr = MIGRAPH_MANAGE_PTR(void, hipFree);
...@@ -110,5 +110,5 @@ void copy_to_gpu(argument src, argument dst) ...@@ -110,5 +110,5 @@ void copy_to_gpu(argument src, argument dst)
} }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -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_leaky_relu::compute_shape(const std::vector<shape>& inputs) const shape miopen_leaky_relu::compute_shape(const std::vector<shape>& inputs) const
...@@ -34,5 +34,5 @@ argument miopen_leaky_relu::compute(context& ctx, ...@@ -34,5 +34,5 @@ argument miopen_leaky_relu::compute(context& ctx,
} }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <utility> #include <utility>
namespace migraph { namespace migraph {
inline namespace version_1 { inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
struct miopen_apply struct miopen_apply
...@@ -221,5 +221,5 @@ struct miopen_apply ...@@ -221,5 +221,5 @@ struct miopen_apply
void lowering::apply(program& p) const { miopen_apply{&p, ctx}.apply(); } void lowering::apply(program& p) const { miopen_apply{&p, ctx}.apply(); }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -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 hip_mul::compute_shape(const std::vector<shape>& inputs) const shape hip_mul::compute_shape(const std::vector<shape>& inputs) const
...@@ -22,5 +22,5 @@ argument hip_mul::compute(context& ctx, const shape&, const std::vector<argument ...@@ -22,5 +22,5 @@ argument hip_mul::compute(context& ctx, const shape&, const std::vector<argument
} }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -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_pooling::compute_shape(const std::vector<shape>& inputs) const shape miopen_pooling::compute_shape(const std::vector<shape>& inputs) const
...@@ -38,5 +38,5 @@ argument miopen_pooling::compute(context& ctx, ...@@ -38,5 +38,5 @@ argument miopen_pooling::compute(context& ctx,
} }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -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_relu::compute_shape(const std::vector<shape>& inputs) const shape miopen_relu::compute_shape(const std::vector<shape>& inputs) const
...@@ -34,5 +34,5 @@ argument miopen_relu::compute(context& ctx, ...@@ -34,5 +34,5 @@ argument miopen_relu::compute(context& ctx,
} }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#include <migraph/gpu/rocblas.hpp> #include <migraph/gpu/rocblas.hpp>
namespace migraph { namespace migraph {
inline namespace version_1 { inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
rocblas_handle_ptr create_rocblas_handle_ptr() rocblas_handle_ptr create_rocblas_handle_ptr()
...@@ -19,5 +19,5 @@ rocblas_handle_ptr create_rocblas_handle_ptr(hipStream_t s) ...@@ -19,5 +19,5 @@ rocblas_handle_ptr create_rocblas_handle_ptr(hipStream_t s)
} }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -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_softmax::compute_shape(const std::vector<shape>& inputs) const shape miopen_softmax::compute_shape(const std::vector<shape>& inputs) const
...@@ -33,5 +33,5 @@ argument miopen_softmax::compute(context& ctx, ...@@ -33,5 +33,5 @@ argument miopen_softmax::compute(context& ctx,
} }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <migraph/gpu/concat_gpu_opt.hpp> #include <migraph/gpu/concat_gpu_opt.hpp>
namespace migraph { namespace migraph {
inline namespace version_1 { inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
std::vector<pass> target::get_passes(migraph::context& gctx) const std::vector<pass> target::get_passes(migraph::context& gctx) const
...@@ -61,5 +61,5 @@ std::string target::name() const { return "miopen"; } ...@@ -61,5 +61,5 @@ std::string target::name() const { return "miopen"; }
migraph::context target::get_context() const { return context{}; } migraph::context target::get_context() const { return context{}; }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <migraph/env.hpp> #include <migraph/env.hpp>
namespace migraph { namespace migraph {
inline namespace version_1 { inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
MIGRAPH_DECLARE_ENV_VAR(MIGRAPH_COPY_LITERALS) MIGRAPH_DECLARE_ENV_VAR(MIGRAPH_COPY_LITERALS)
...@@ -53,5 +53,5 @@ void write_literals::apply(program& p) const ...@@ -53,5 +53,5 @@ void write_literals::apply(program& p) const
} }
} // namespace gpu } // namespace gpu
} // namespace version_1 } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment