Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
c05e72e2
Commit
c05e72e2
authored
Nov 05, 2018
by
Shucai Xiao
Browse files
change the macro MIGRAPH_ININE_NS back to version_1 in .cpp files.
parent
d6d386f7
Changes
43
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
40 additions
and
40 deletions
+40
-40
src/targets/gpu/add.cpp
src/targets/gpu/add.cpp
+2
-2
src/targets/gpu/batchnorm.cpp
src/targets/gpu/batchnorm.cpp
+2
-2
src/targets/gpu/concat.cpp
src/targets/gpu/concat.cpp
+2
-2
src/targets/gpu/contiguous.cpp
src/targets/gpu/contiguous.cpp
+2
-2
src/targets/gpu/convolution.cpp
src/targets/gpu/convolution.cpp
+2
-2
src/targets/gpu/device/add.cpp
src/targets/gpu/device/add.cpp
+2
-2
src/targets/gpu/device/add_relu.cpp
src/targets/gpu/device/add_relu.cpp
+2
-2
src/targets/gpu/device/concat.cpp
src/targets/gpu/device/concat.cpp
+2
-2
src/targets/gpu/device/contiguous.cpp
src/targets/gpu/device/contiguous.cpp
+2
-2
src/targets/gpu/device/mul.cpp
src/targets/gpu/device/mul.cpp
+2
-2
src/targets/gpu/eliminate_workspace.cpp
src/targets/gpu/eliminate_workspace.cpp
+2
-2
src/targets/gpu/fuse_ops.cpp
src/targets/gpu/fuse_ops.cpp
+2
-2
src/targets/gpu/gemm.cpp
src/targets/gpu/gemm.cpp
+2
-2
src/targets/gpu/hip.cpp
src/targets/gpu/hip.cpp
+2
-2
src/targets/gpu/leaky_relu.cpp
src/targets/gpu/leaky_relu.cpp
+2
-2
src/targets/gpu/lowering.cpp
src/targets/gpu/lowering.cpp
+2
-2
src/targets/gpu/mul.cpp
src/targets/gpu/mul.cpp
+2
-2
src/targets/gpu/pooling.cpp
src/targets/gpu/pooling.cpp
+2
-2
src/targets/gpu/relu.cpp
src/targets/gpu/relu.cpp
+2
-2
src/targets/gpu/rocblas.cpp
src/targets/gpu/rocblas.cpp
+2
-2
No files found.
src/targets/gpu/add.cpp
View file @
c05e72e2
...
...
@@ -6,7 +6,7 @@
#include <utility>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
shape
hip_add
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
...
...
@@ -51,5 +51,5 @@ argument miopen_add::compute(context& ctx,
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/batchnorm.cpp
View file @
c05e72e2
...
...
@@ -5,7 +5,7 @@
#include <utility>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
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,
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/concat.cpp
View file @
c05e72e2
...
...
@@ -6,7 +6,7 @@
#include <utility>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
shape
hip_concat
::
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
...
...
@@ -24,5 +24,5 @@ argument hip_concat::compute(context& ctx,
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/contiguous.cpp
View file @
c05e72e2
...
...
@@ -5,7 +5,7 @@
#include <utility>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
shape
miopen_contiguous
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
...
...
@@ -25,5 +25,5 @@ argument miopen_contiguous::compute(context& ctx,
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/convolution.cpp
View file @
c05e72e2
...
...
@@ -5,7 +5,7 @@
#include <utility>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
shape
miopen_convolution
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
...
...
@@ -82,5 +82,5 @@ shape miopen_convolution::compile(context& ctx,
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/device/add.cpp
View file @
c05e72e2
...
...
@@ -2,7 +2,7 @@
#include <migraph/gpu/device/nary.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
namespace
device
{
...
...
@@ -22,5 +22,5 @@ void add(hipStream_t stream,
}
// namespace device
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
//
inline
namespace
version_1
}
// namespace migraph
src/targets/gpu/device/add_relu.cpp
View file @
c05e72e2
...
...
@@ -2,7 +2,7 @@
#include <migraph/gpu/device/nary.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
namespace
device
{
...
...
@@ -27,5 +27,5 @@ void add_relu(hipStream_t stream,
}
// namespace device
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
//
inline
namespace
version_1
}
// namespace migraph
src/targets/gpu/device/concat.cpp
View file @
c05e72e2
...
...
@@ -5,7 +5,7 @@
#include <migraph/gpu/device/launch.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
namespace
device
{
...
...
@@ -34,5 +34,5 @@ argument concat(hipStream_t stream,
}
// namespace device
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
//
inline
namespace
version_1
}
// namespace migraph
src/targets/gpu/device/contiguous.cpp
View file @
c05e72e2
...
...
@@ -3,7 +3,7 @@
#include <migraph/gpu/device/nary.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
namespace
device
{
...
...
@@ -14,5 +14,5 @@ void contiguous(hipStream_t stream, argument result, argument arg)
}
// namespace device
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
//
inline
namespace
version_1
}
// namespace migraph
src/targets/gpu/device/mul.cpp
View file @
c05e72e2
...
...
@@ -2,7 +2,7 @@
#include <migraph/gpu/device/nary.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
namespace
device
{
...
...
@@ -22,5 +22,5 @@ void mul(hipStream_t stream,
}
// namespace device
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
//
inline
namespace
version_1
}
// namespace migraph
src/targets/gpu/eliminate_workspace.cpp
View file @
c05e72e2
...
...
@@ -9,7 +9,7 @@
#include <migraph/pass_config.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
void
eliminate_workspace
::
apply
(
program
&
p
)
const
...
...
@@ -41,5 +41,5 @@ void eliminate_workspace::apply(program& p) const
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/fuse_ops.cpp
View file @
c05e72e2
...
...
@@ -6,7 +6,7 @@
#include <migraph/instruction.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
struct
fusion
...
...
@@ -382,5 +382,5 @@ void fuse_ops::apply(program& p) const
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/gemm.cpp
View file @
c05e72e2
...
...
@@ -5,7 +5,7 @@
#include <utility>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
shape
miopen_gemm
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
...
...
@@ -45,5 +45,5 @@ argument miopen_gemm::compute(context& ctx,
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/hip.cpp
View file @
c05e72e2
...
...
@@ -7,7 +7,7 @@
#include <vector>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
using
hip_ptr
=
MIGRAPH_MANAGE_PTR
(
void
,
hipFree
);
...
...
@@ -110,5 +110,5 @@ void copy_to_gpu(argument src, argument dst)
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/leaky_relu.cpp
View file @
c05e72e2
...
...
@@ -5,7 +5,7 @@
#include <utility>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
shape
miopen_leaky_relu
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
...
...
@@ -34,5 +34,5 @@ argument miopen_leaky_relu::compute(context& ctx,
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/lowering.cpp
View file @
c05e72e2
...
...
@@ -27,7 +27,7 @@
#include <utility>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
struct
miopen_apply
...
...
@@ -221,5 +221,5 @@ struct miopen_apply
void
lowering
::
apply
(
program
&
p
)
const
{
miopen_apply
{
&
p
,
ctx
}.
apply
();
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/mul.cpp
View file @
c05e72e2
...
...
@@ -5,7 +5,7 @@
#include <utility>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
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
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/pooling.cpp
View file @
c05e72e2
...
...
@@ -5,7 +5,7 @@
#include <utility>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
shape
miopen_pooling
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
...
...
@@ -38,5 +38,5 @@ argument miopen_pooling::compute(context& ctx,
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/relu.cpp
View file @
c05e72e2
...
...
@@ -5,7 +5,7 @@
#include <utility>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
shape
miopen_relu
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
...
...
@@ -34,5 +34,5 @@ argument miopen_relu::compute(context& ctx,
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
// namespace
version_1
}
// namespace migraph
src/targets/gpu/rocblas.cpp
View file @
c05e72e2
#include <migraph/gpu/rocblas.hpp>
namespace
migraph
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
version_1
{
namespace
gpu
{
rocblas_handle_ptr
create_rocblas_handle_ptr
()
...
...
@@ -19,5 +19,5 @@ rocblas_handle_ptr create_rocblas_handle_ptr(hipStream_t s)
}
}
// namespace gpu
}
// namespace
MIGRAPH_INLINE_NS
}
//
inline
namespace
version_1
}
// namespace migraph
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment