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