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
00d54147
"include/ck/utility/dynamic_buffer.hpp" did not exist on "4be7f0198e55f386d51cdb127dc0fa69427d6fe0"
Commit
00d54147
authored
Feb 16, 2019
by
Shucai Xiao
Browse files
modify test CMakeLists.txt to refine test name.
parent
4089bcb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
test/CMakeLists.txt
test/CMakeLists.txt
+8
-7
No files found.
test/CMakeLists.txt
View file @
00d54147
...
@@ -116,13 +116,14 @@ set(TEST_ONNX_DIR ${CMAKE_CURRENT_SOURCE_DIR}/onnx)
...
@@ -116,13 +116,14 @@ set(TEST_ONNX_DIR ${CMAKE_CURRENT_SOURCE_DIR}/onnx)
file
(
GLOB ONNX_TESTS
${
TEST_ONNX_DIR
}
/*.cpp
)
file
(
GLOB ONNX_TESTS
${
TEST_ONNX_DIR
}
/*.cpp
)
foreach
(
ONNX_TEST
${
ONNX_TESTS
}
)
foreach
(
ONNX_TEST
${
ONNX_TESTS
}
)
get_filename_component
(
BASE_NAME
${
ONNX_TEST
}
NAME_WE
)
get_filename_component
(
BASE_NAME
${
ONNX_TEST
}
NAME_WE
)
add_executable
(
${
BASE_NAME
}
${
TES_ONNX_DIR
}
/
${
ONNX_TEST
}
)
set
(
TEST_NAME test_
${
BASE_NAME
}
)
rocm_clang_tidy_check
(
${
BASE_NAME
}
)
add_executable
(
${
TEST_NAME
}
${
TES_ONNX_DIR
}
/
${
ONNX_TEST
}
)
target_link_libraries
(
${
BASE_NAME
}
migraphx_onnx
)
rocm_clang_tidy_check
(
${
TEST_NAME
}
)
target_include_directories
(
${
BASE_NAME
}
PUBLIC include
)
target_link_libraries
(
${
TEST_NAME
}
migraphx_onnx
)
add_test
(
NAME
${
BASE_NAME
}
COMMAND $<TARGET_FILE:
${
BASE_NAME
}
> WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/onnx
)
target_include_directories
(
${
TEST_NAME
}
PUBLIC include
)
add_dependencies
(
tests
${
BASE_NAME
}
)
add_test
(
NAME
${
TEST_NAME
}
COMMAND $<TARGET_FILE:
${
TEST_NAME
}
> WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/onnx
)
add_dependencies
(
check
${
BASE_NAME
}
)
add_dependencies
(
tests
${
TEST_NAME
}
)
add_dependencies
(
check
${
TEST_NAME
}
)
endforeach
()
endforeach
()
if
(
MIGRAPHX_ENABLE_PYTHON
)
if
(
MIGRAPHX_ENABLE_PYTHON
)
...
...
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