Commit 68d69739 authored by Paul's avatar Paul
Browse files

Rename tests

parent 2d2b7873
......@@ -10,6 +10,6 @@ target_include_directories(migraph PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOUR
add_subdirectory(onnx)
add_subdirectory(targets/cpu)
if(MIGRAPH_ENABLE_MIOPEN)
if(MIGRAPH_ENABLE_GPU)
add_subdirectory(targets/gpu)
endif()
......@@ -20,7 +20,7 @@ add_executable(mnist mnist.cpp)
rocm_clang_tidy_check(mnist)
target_link_libraries(mnist migraph_cpu migraph_onnx)
if(MIGRAPH_ENABLE_MIOPEN)
if(MIGRAPH_ENABLE_GPU)
add_executable(verify_onnx verify_onnx.cpp)
rocm_clang_tidy_check(verify_onnx)
target_link_libraries(verify_onnx migraph_onnx migraph_cpu migraph_miopen)
......
......@@ -95,13 +95,13 @@ foreach(TEST ${TESTS})
add_test_executable(test_${BASE_NAME} ${TEST})
endforeach()
if(MIGRAPH_ENABLE_MIOPEN)
# miopen tests
file(GLOB MIOPEN_TESTS miopen/*.cpp)
if(MIGRAPH_ENABLE_GPU)
# gpu tests
file(GLOB GPU_TESTS gpu/*.cpp)
foreach(TEST ${MIOPEN_TESTS})
foreach(TEST ${GPU_TESTS})
get_filename_component(BASE_NAME ${TEST} NAME_WE)
add_test_executable(test_miopen_${BASE_NAME} ${TEST})
target_link_libraries(test_miopen_${BASE_NAME} migraph_gpu)
add_test_executable(test_gpu_${BASE_NAME} ${TEST})
target_link_libraries(test_gpu_${BASE_NAME} migraph_gpu)
endforeach()
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment