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
17e573c0
Commit
17e573c0
authored
Nov 07, 2018
by
Paul
Browse files
Formatting
parent
ea3872f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
test/eliminate_allocation_test.cpp
test/eliminate_allocation_test.cpp
+5
-1
test/include/test.hpp
test/include/test.hpp
+5
-5
No files found.
test/eliminate_allocation_test.cpp
View file @
17e573c0
...
@@ -100,4 +100,8 @@ TEST_CASE(float_aligned)
...
@@ -100,4 +100,8 @@ TEST_CASE(float_aligned)
EXPECT
(
p
.
get_parameter_shape
(
"memory"
).
bytes
()
==
(
1
*
4
+
2
*
4
+
200
*
4
));
EXPECT
(
p
.
get_parameter_shape
(
"memory"
).
bytes
()
==
(
1
*
4
+
2
*
4
+
200
*
4
));
}
}
int
main
(
int
argc
,
const
char
*
argv
[])
{
setenv
(
"MIGRAPH_DISABLE_MEMORY_COLORING"
,
"1"
,
1
);
test
::
run
(
argc
,
argv
);
}
int
main
(
int
argc
,
const
char
*
argv
[])
{
setenv
(
"MIGRAPH_DISABLE_MEMORY_COLORING"
,
"1"
,
1
);
test
::
run
(
argc
,
argv
);
}
test/include/test.hpp
View file @
17e573c0
...
@@ -244,16 +244,16 @@ inline void run(int argc, const char* argv[])
...
@@ -244,16 +244,16 @@ inline void run(int argc, const char* argv[])
// NOLINTNEXTLINE
// NOLINTNEXTLINE
#define TEST_CAT(x, ...) TEST_PRIMITIVE_CAT(x, __VA_ARGS__)
#define TEST_CAT(x, ...) TEST_PRIMITIVE_CAT(x, __VA_ARGS__)
#define TEST_PRIMITIVE_CAT(x, ...) x
##
__VA_ARGS__
#define TEST_PRIMITIVE_CAT(x, ...) x##__VA_ARGS__
// NOLINTNEXTLINE
// NOLINTNEXTLINE
#define TEST_CASE_REGISTER(...) \
#define TEST_CASE_REGISTER(...)
\
static test::auto_register TEST_CAT(register_test_case_, __LINE__) =
\
static test::auto_register TEST_CAT(register_test_case_, __LINE__) = \
test::auto_register(#__VA_ARGS__, &__VA_ARGS__);
test::auto_register(#__VA_ARGS__, &__VA_ARGS__);
// NOLINTNEXTLINE
// NOLINTNEXTLINE
#define TEST_CASE(...)
\
#define TEST_CASE(...) \
void __VA_ARGS__();
\
void __VA_ARGS__(); \
TEST_CASE_REGISTER(__VA_ARGS__) \
TEST_CASE_REGISTER(__VA_ARGS__) \
void __VA_ARGS__()
void __VA_ARGS__()
...
...
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