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
cb4e7a5a
Commit
cb4e7a5a
authored
Jul 06, 2023
by
Brian Pickrell
Browse files
comments
parent
5ec7b014
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
src/include/migraphx/op/prefix_scan_op.hpp
src/include/migraphx/op/prefix_scan_op.hpp
+2
-2
test/ref_ops_test.cpp
test/ref_ops_test.cpp
+3
-2
No files found.
src/include/migraphx/op/prefix_scan_op.hpp
View file @
cb4e7a5a
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
*/
*/
/**
/**
* Parent struct for prefix scans. A prefix scan is a mathematical entity useful
* Parent struct for prefix scan
op
s. A prefix scan is a mathematical entity useful
* in parallelizing various computations. Given a list of numbers, a prefix scan
* in parallelizing various computations. Given a list of numbers, a prefix scan
*
i
s an equal size list of running totals of the values. Other operations
*
op return
s an equal size list of running totals of the values. Other operations
* besides addition can be supported by child ops.
* besides addition can be supported by child ops.
*/
*/
#ifndef MIGRAPHX_GUARD_OPERATORS_SCAN_OP_HPP
#ifndef MIGRAPHX_GUARD_OPERATORS_SCAN_OP_HPP
...
...
test/ref_ops_test.cpp
View file @
cb4e7a5a
...
@@ -5546,7 +5546,8 @@ TEST_CASE(prefix_scan_sum_dyn_1d)
...
@@ -5546,7 +5546,8 @@ TEST_CASE(prefix_scan_sum_dyn_1d)
std::vector<migraphx::shape::dynamic_dimension> dd{{5, 8}};
std::vector<migraphx::shape::dynamic_dimension> dd{{5, 8}};
migraphx::shape s{migraphx::shape::float_type, dd};
migraphx::shape s{migraphx::shape::float_type, dd};
auto input = mm->add_parameter("X", s);
auto input = mm->add_parameter("X", s);
mm->add_instruction(migraphx::make_op("prefix_scan_sum", {{"axis", 0}, {"exclusive", false}}), input);
mm->add_instruction(migraphx::make_op("prefix_scan_sum", {{"axis", 0}, {"exclusive", false}}),
input);
p.compile(migraphx::make_target("ref"));
p.compile(migraphx::make_target("ref"));
std::vector<float> a = {1, 2, 3, 4, 5, 6};
std::vector<float> a = {1, 2, 3, 4, 5, 6};
...
...
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