Commit 80246f67 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

fixed the warnings related to inline namespace.

parent ca69e522
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <utility> #include <utility>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <utility> #include <utility>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <utility> #include <utility>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <utility> #include <utility>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <utility> #include <utility>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline 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 {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline 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 {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <migraph/gpu/device/launch.hpp> #include <migraph/gpu/device/launch.hpp>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline 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 {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline 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 {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline 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 {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline 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 {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <utility> #include <utility>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include <vector> #include <vector>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <utility> #include <utility>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <utility> #include <utility>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <utility> #include <utility>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <utility> #include <utility>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <utility> #include <utility>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#include <migraph/gpu/rocblas.hpp> #include <migraph/gpu/rocblas.hpp>
namespace migraph { namespace migraph {
namespace MIGRAPH_INLINE_NS { 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 MIGRAPH_INLINE_NS } // inline 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