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

clang format for all changed files.

parent e1ef1e17
...@@ -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 mul(hipStream_t stream, ...@@ -20,7 +21,7 @@ void mul(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/instruction_ref.hpp> #include <migraph/instruction_ref.hpp>
#include <migraph/config.hpp> #include <migraph/config.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
struct program; struct program;
namespace gpu { namespace gpu {
...@@ -16,7 +17,7 @@ struct eliminate_workspace ...@@ -16,7 +17,7 @@ struct eliminate_workspace
void apply(program& p) const; void apply(program& p) const;
}; };
} // 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 <migraph/gpu/context.hpp> #include <migraph/gpu/context.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
...@@ -17,7 +18,7 @@ struct fuse_ops ...@@ -17,7 +18,7 @@ struct fuse_ops
}; };
} // 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_gemm struct miopen_gemm
...@@ -32,7 +33,7 @@ struct miopen_gemm ...@@ -32,7 +33,7 @@ struct miopen_gemm
}; };
} // 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 <utility> #include <utility>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
migraph::argument allocate_gpu(const migraph::shape& s, bool host = false); migraph::argument allocate_gpu(const migraph::shape& s, bool host = false);
...@@ -88,7 +89,7 @@ struct hip_copy ...@@ -88,7 +89,7 @@ struct hip_copy
}; };
} // 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_leaky_relu struct miopen_leaky_relu
...@@ -32,7 +33,7 @@ struct miopen_leaky_relu ...@@ -32,7 +33,7 @@ struct miopen_leaky_relu
}; };
} // 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 <migraph/gpu/context.hpp> #include <migraph/gpu/context.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
struct lowering struct lowering
...@@ -16,7 +17,7 @@ struct lowering ...@@ -16,7 +17,7 @@ struct lowering
}; };
} // 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 <miopen/miopen.h> #include <miopen/miopen.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 {
using miopen_handle = MIGRAPH_MANAGE_PTR(miopenHandle_t, miopenDestroy); using miopen_handle = MIGRAPH_MANAGE_PTR(miopenHandle_t, miopenDestroy);
...@@ -116,7 +117,7 @@ inline fused_operator_args make_fused_args() ...@@ -116,7 +117,7 @@ inline fused_operator_args make_fused_args()
} }
} // 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_mul struct hip_mul
...@@ -30,7 +31,7 @@ struct hip_mul ...@@ -30,7 +31,7 @@ struct hip_mul
}; };
} // 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_pooling struct miopen_pooling
...@@ -34,7 +35,7 @@ struct miopen_pooling ...@@ -34,7 +35,7 @@ struct miopen_pooling
}; };
} // 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_relu struct miopen_relu
...@@ -32,7 +33,7 @@ struct miopen_relu ...@@ -32,7 +33,7 @@ struct miopen_relu
}; };
} // 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 <rocblas.h> #include <rocblas.h>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
using rocblas_handle_ptr = MIGRAPH_MANAGE_PTR(rocblas_handle, rocblas_destroy_handle); using rocblas_handle_ptr = MIGRAPH_MANAGE_PTR(rocblas_handle, rocblas_destroy_handle);
...@@ -15,7 +16,7 @@ rocblas_handle_ptr create_rocblas_handle_ptr(); ...@@ -15,7 +16,7 @@ rocblas_handle_ptr create_rocblas_handle_ptr();
rocblas_handle_ptr create_rocblas_handle_ptr(hipStream_t s); rocblas_handle_ptr create_rocblas_handle_ptr(hipStream_t s);
} // 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_softmax struct miopen_softmax
...@@ -32,7 +33,7 @@ struct miopen_softmax ...@@ -32,7 +33,7 @@ struct miopen_softmax
}; };
} // namespace gpu } // namespace gpu
} // 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 gpu { namespace gpu {
struct target struct target
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
#include <migraph/program.hpp> #include <migraph/program.hpp>
#include <migraph/gpu/context.hpp> #include <migraph/gpu/context.hpp>
namespace migraph { inline namespace MIGRAPH_INLINE_NS { namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
namespace gpu { namespace gpu {
...@@ -17,7 +18,7 @@ struct write_literals ...@@ -17,7 +18,7 @@ struct write_literals
}; };
} // 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