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

clang format for all changed files.

parent e1ef1e17
...@@ -180,6 +180,6 @@ struct memory_coloring_impl ...@@ -180,6 +180,6 @@ struct memory_coloring_impl
std::string allocation_op{}; std::string allocation_op{};
}; };
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
#include <functional> #include <functional>
#include <iostream> #include <iostream>
namespace migraph { namespace MIGRAPH_INLINE_NS { namespace migraph {
namespace MIGRAPH_INLINE_NS {
struct shape_impl struct shape_impl
{ {
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
#include <migraph/config.hpp> #include <migraph/config.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace cpu { namespace cpu {
struct context struct context
...@@ -12,7 +13,7 @@ struct context ...@@ -12,7 +13,7 @@ struct context
}; };
} // namespace cpu } // namespace cpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -4,14 +4,15 @@ ...@@ -4,14 +4,15 @@
#include <migraph/argument.hpp> #include <migraph/argument.hpp>
#include <migraph/config.hpp> #include <migraph/config.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace cpu { namespace cpu {
void migemm( void migemm(
const argument& c_arg, const argument& a_arg, const argument& b_arg, float alpha, float beta); const argument& c_arg, const argument& a_arg, const argument& b_arg, float alpha, float beta);
} // namespace cpu } // namespace cpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
#include <migraph/program.hpp> #include <migraph/program.hpp>
#include <migraph/config.hpp> #include <migraph/config.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace cpu { namespace cpu {
struct lowering struct lowering
...@@ -14,7 +15,7 @@ struct lowering ...@@ -14,7 +15,7 @@ struct lowering
}; };
} // namespace cpu } // namespace cpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
#include <migraph/cpu/context.hpp> #include <migraph/cpu/context.hpp>
#include <migraph/config.hpp> #include <migraph/config.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace cpu { namespace cpu {
struct target struct target
...@@ -16,7 +17,7 @@ struct target ...@@ -16,7 +17,7 @@ struct target
}; };
} // namespace cpu } // namespace cpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
#include <hip/hip_runtime.h> #include <hip/hip_runtime.h>
#include <migraph/config.hpp> #include <migraph/config.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
namespace device { namespace device {
...@@ -59,7 +60,7 @@ inline auto gs_launch(hipStream_t stream, std::size_t n, std::size_t local = 102 ...@@ -59,7 +60,7 @@ inline auto gs_launch(hipStream_t stream, std::size_t n, std::size_t local = 102
} // namespace device } // namespace device
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
#include <migraph/ranges.hpp> #include <migraph/ranges.hpp>
#include <migraph/config.hpp> #include <migraph/config.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
namespace device { namespace device {
...@@ -395,7 +396,7 @@ inline auto nary(hipStream_t stream, ...@@ -395,7 +396,7 @@ inline auto nary(hipStream_t stream,
} // namespace device } // namespace device
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
#include <migraph/functional.hpp> #include <migraph/functional.hpp>
#include <migraph/config.hpp> #include <migraph/config.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
namespace device { namespace device {
...@@ -86,7 +87,7 @@ struct hip_tensor_descriptor ...@@ -86,7 +87,7 @@ struct hip_tensor_descriptor
} // namespace device } // namespace device
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
#include <migraph/half.hpp> #include <migraph/half.hpp>
#include <migraph/config.hpp> #include <migraph/config.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
namespace device { namespace device {
...@@ -76,7 +77,7 @@ device_type<T>* device_cast(T* x) ...@@ -76,7 +77,7 @@ device_type<T>* device_cast(T* x)
} // namespace device } // namespace device
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
#include <migraph/config.hpp> #include <migraph/config.hpp>
#include <utility> #include <utility>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
struct hip_add struct hip_add
...@@ -39,7 +40,7 @@ struct miopen_add ...@@ -39,7 +40,7 @@ struct miopen_add
}; };
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
#include <migraph/config.hpp> #include <migraph/config.hpp>
#include <utility> #include <utility>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
struct miopen_batch_norm_inference struct miopen_batch_norm_inference
...@@ -32,7 +33,7 @@ struct miopen_batch_norm_inference ...@@ -32,7 +33,7 @@ struct miopen_batch_norm_inference
}; };
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
#include <migraph/gpu/context.hpp> #include <migraph/gpu/context.hpp>
#include <utility> #include <utility>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
struct hip_concat struct hip_concat
...@@ -33,7 +34,7 @@ struct hip_concat ...@@ -33,7 +34,7 @@ struct hip_concat
}; };
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
#include <migraph/env.hpp> #include <migraph/env.hpp>
#include <migraph/config.hpp> #include <migraph/config.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
MIGRAPH_DECLARE_ENV_VAR(MIGRAPH_DISABLE_NULL_STREAM) MIGRAPH_DECLARE_ENV_VAR(MIGRAPH_DISABLE_NULL_STREAM)
...@@ -115,7 +116,7 @@ struct context ...@@ -115,7 +116,7 @@ struct context
std::shared_ptr<hip_device> current_device; std::shared_ptr<hip_device> current_device;
}; };
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
#include <migraph/gpu/context.hpp> #include <migraph/gpu/context.hpp>
#include <utility> #include <utility>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
struct miopen_contiguous struct miopen_contiguous
...@@ -31,7 +32,7 @@ struct miopen_contiguous ...@@ -31,7 +32,7 @@ struct miopen_contiguous
}; };
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
#include <migraph/gpu/context.hpp> #include <migraph/gpu/context.hpp>
#include <utility> #include <utility>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
struct miopen_convolution struct miopen_convolution
...@@ -43,7 +44,7 @@ struct miopen_convolution ...@@ -43,7 +44,7 @@ struct miopen_convolution
}; };
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
#include <migraph/config.hpp> #include <migraph/config.hpp>
#include <hip/hip_runtime_api.h> #include <hip/hip_runtime_api.h>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
namespace device { namespace device {
...@@ -20,7 +21,7 @@ void add(hipStream_t stream, ...@@ -20,7 +21,7 @@ void add(hipStream_t stream,
} // namespace device } // namespace device
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
#include <migraph/config.hpp> #include <migraph/config.hpp>
#include <hip/hip_runtime_api.h> #include <hip/hip_runtime_api.h>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
namespace device { namespace device {
...@@ -23,7 +24,7 @@ void add_relu(hipStream_t stream, ...@@ -23,7 +24,7 @@ void add_relu(hipStream_t stream,
} // namespace device } // namespace device
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
#include <migraph/config.hpp> #include <migraph/config.hpp>
#include <hip/hip_runtime_api.h> #include <hip/hip_runtime_api.h>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
namespace device { namespace device {
...@@ -16,7 +17,7 @@ argument concat(hipStream_t stream, ...@@ -16,7 +17,7 @@ argument concat(hipStream_t stream,
} // namespace device } // namespace device
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
#include <migraph/config.hpp> #include <migraph/config.hpp>
#include <hip/hip_runtime_api.h> #include <hip/hip_runtime_api.h>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
namespace device { namespace device {
...@@ -13,7 +14,7 @@ void contiguous(hipStream_t stream, argument result, argument arg); ...@@ -13,7 +14,7 @@ void contiguous(hipStream_t stream, argument result, argument arg);
} // namespace device } // namespace device
} // namespace gpu } // namespace gpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
#endif #endif
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