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
9d87cd50
Commit
9d87cd50
authored
Feb 13, 2019
by
mei-ye
Browse files
remove cpu event test
parent
a129ea19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
test/cpu_event_test.cpp
test/cpu_event_test.cpp
+0
-38
No files found.
test/cpu_event_test.cpp
deleted
100644 → 0
View file @
a129ea19
#include <migraphx/pre_scheduling.hpp>
#include <migraphx/operators.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/instruction.hpp>
#include <migraphx/program.hpp>
#include <migraphx/cpu/target.hpp>
#include <basic_ops.hpp>
#include <test.hpp>
// This is a test to trigger the code in cpu's context.hpp and runtime
// codes in program.cpp.
//
TEST_CASE
(
test1
)
{
migraphx
::
program
p
;
auto
in1
=
p
.
add_parameter
(
"0"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
32
,
64
,
1
,
1
}});
auto
in2
=
p
.
add_parameter
(
"1"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
64
,
64
,
1
,
1
}});
auto
p1
=
p
.
add_instruction
(
migraphx
::
op
::
convolution
{},
in1
,
in2
);
p1
->
set_stream
(
0
);
auto
in3
=
p
.
add_parameter
(
"2"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
64
,
64
,
1
,
1
}});
auto
p2
=
p
.
add_instruction
(
migraphx
::
op
::
convolution
{},
in1
,
in3
);
p2
->
set_stream
(
1
);
p2
->
set_event
(
0
);
p2
->
add_mask
(
migraphx
::
record_event
);
auto
p3
=
p
.
add_instruction
(
migraphx
::
op
::
concat
{
1
},
p1
,
p2
);
p3
->
set_stream
(
0
);
p3
->
add_mask
(
migraphx
::
wait_event
);
p
.
compile
(
migraphx
::
cpu
::
target
{});
migraphx
::
program
::
parameter_map
m
;
for
(
auto
&&
x
:
p
.
get_parameter_shapes
())
{
m
[
x
.
first
]
=
migraphx
::
generate_argument
(
x
.
second
);
}
p
.
eval
(
m
);
}
int
main
(
int
argc
,
const
char
*
argv
[])
{
test
::
run
(
argc
,
argv
);
}
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