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
1793cc54
Unverified
Commit
1793cc54
authored
Dec 07, 2021
by
Paul Fultz II
Committed by
GitHub
Dec 07, 2021
Browse files
Rename reduce_inputs to virtual_inputs (#1021)
simple variable rename
parent
0f9b4072
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
src/targets/gpu/compile_hip_code_object.cpp
src/targets/gpu/compile_hip_code_object.cpp
+1
-1
src/targets/gpu/compile_pointwise.cpp
src/targets/gpu/compile_pointwise.cpp
+1
-1
src/targets/gpu/compile_roialign.cpp
src/targets/gpu/compile_roialign.cpp
+1
-1
src/targets/gpu/include/migraphx/gpu/compile_hip_code_object.hpp
...gets/gpu/include/migraphx/gpu/compile_hip_code_object.hpp
+1
-1
No files found.
src/targets/gpu/compile_hip_code_object.cpp
View file @
1793cc54
...
@@ -108,7 +108,7 @@ operation compile_hip_code_object(const std::string& content, hip_compile_option
...
@@ -108,7 +108,7 @@ operation compile_hip_code_object(const std::string& content, hip_compile_option
srcs
.
push_back
(
src_file
{
fs
::
path
{
"main.cpp"
},
srcs
.
push_back
(
src_file
{
fs
::
path
{
"main.cpp"
},
std
::
make_pair
(
content
.
data
(),
content
.
data
()
+
content
.
size
())});
std
::
make_pair
(
content
.
data
(),
content
.
data
()
+
content
.
size
())});
auto
args_hpp
=
auto
args_hpp
=
generate_args_hpp
(
options
.
reduced
_inputs
.
empty
()
?
options
.
inputs
:
options
.
reduced
_inputs
);
generate_args_hpp
(
options
.
virtual
_inputs
.
empty
()
?
options
.
inputs
:
options
.
virtual
_inputs
);
srcs
.
push_back
(
src_file
{
fs
::
path
{
"args.hpp"
},
srcs
.
push_back
(
src_file
{
fs
::
path
{
"args.hpp"
},
std
::
make_pair
(
args_hpp
.
data
(),
args_hpp
.
data
()
+
args_hpp
.
size
())});
std
::
make_pair
(
args_hpp
.
data
(),
args_hpp
.
data
()
+
args_hpp
.
size
())});
options
.
params
+=
" -DMIGRAPHX_NGLOBAL="
+
std
::
to_string
(
options
.
global
);
options
.
params
+=
" -DMIGRAPHX_NGLOBAL="
+
std
::
to_string
(
options
.
global
);
...
...
src/targets/gpu/compile_pointwise.cpp
View file @
1793cc54
...
@@ -48,7 +48,7 @@ operation compile_pointwise(context&,
...
@@ -48,7 +48,7 @@ operation compile_pointwise(context&,
options
.
local
=
1024
;
options
.
local
=
1024
;
options
.
inputs
=
inputs
;
options
.
inputs
=
inputs
;
options
.
output
=
inputs
.
back
();
options
.
output
=
inputs
.
back
();
options
.
reduced
_inputs
=
reduce_dims
(
inputs
);
options
.
virtual
_inputs
=
reduce_dims
(
inputs
);
options
.
params
=
"-Wno-float-equal"
;
options
.
params
=
"-Wno-float-equal"
;
auto
src
=
interpolate_string
(
pointwise_kernel
,
auto
src
=
interpolate_string
(
pointwise_kernel
,
{{
"params"
,
enum_params
(
inputs
.
size
(),
"void * private_p"
)},
{{
"params"
,
enum_params
(
inputs
.
size
(),
"void * private_p"
)},
...
...
src/targets/gpu/compile_roialign.cpp
View file @
1793cc54
...
@@ -50,7 +50,7 @@ operation compile_roialign(context&, const std::vector<shape>& io_shapes, const
...
@@ -50,7 +50,7 @@ operation compile_roialign(context&, const std::vector<shape>& io_shapes, const
options
.
inputs
=
io_shapes
;
options
.
inputs
=
io_shapes
;
options
.
output
=
out_s
;
options
.
output
=
out_s
;
options
.
kernel_name
=
"roialign_kernel"
;
options
.
kernel_name
=
"roialign_kernel"
;
options
.
reduced
_inputs
=
io_shapes
;
options
.
virtual
_inputs
=
io_shapes
;
// sampling_ratio
// sampling_ratio
assert
(
val
.
contains
(
"sampling_ratio"
));
assert
(
val
.
contains
(
"sampling_ratio"
));
...
...
src/targets/gpu/include/migraphx/gpu/compile_hip_code_object.hpp
View file @
1793cc54
...
@@ -16,7 +16,7 @@ struct hip_compile_options
...
@@ -16,7 +16,7 @@ struct hip_compile_options
shape
output
;
shape
output
;
std
::
string
kernel_name
=
"kernel"
;
std
::
string
kernel_name
=
"kernel"
;
std
::
string
params
=
""
;
std
::
string
params
=
""
;
std
::
vector
<
shape
>
reduced
_inputs
=
{};
std
::
vector
<
shape
>
virtual
_inputs
=
{};
};
};
operation
compile_hip_code_object
(
const
std
::
string
&
content
,
hip_compile_options
options
);
operation
compile_hip_code_object
(
const
std
::
string
&
content
,
hip_compile_options
options
);
...
...
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