Browse Source

fix(test): make test install

GitOrigin-RevId: e38d6c5e9f
HuaHua404-patch-1
Megvii Engine Team 3 years ago
parent
commit
ab8f6398d9
3 changed files with 12 additions and 2 deletions
  1. +5
    -0
      dnn/test/CMakeLists.txt
  2. +2
    -2
      dnn/test/arm_common/conv_bias.cpp
  3. +5
    -0
      test/CMakeLists.txt

+ 5
- 0
dnn/test/CMakeLists.txt View File

@@ -77,3 +77,8 @@ if(UNIX)
target_link_libraries(megdnn_test dl rt)
endif()
endif()

install(
TARGETS megdnn_test
EXPORT ${MGE_EXPORT_TARGETS}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

+ 2
- 2
dnn/test/arm_common/conv_bias.cpp View File

@@ -764,8 +764,8 @@ std::vector<conv_bias::TestArg> get_nchw44_channel_wise_benchmark_args(
}

void BENCHMARK_GROUPCONV_NCHW44_int8x8x16VS_int8x8x32(
const char* algo_name0, const char* algo_name1, Handle* handle, size_t kernel,
size_t stride = 1, size_t pack_size = 1) {
const char* algo_name0, const char* algo_name1, Handle* handle,
size_t /*kernel*/, size_t stride = 1, size_t pack_size = 1) {
auto args = get_nchw44_channel_wise_benchmark_args(
{2, 3, 5}, stride, false, true, true);



+ 5
- 0
test/CMakeLists.txt View File

@@ -61,3 +61,8 @@ if(MGE_WITH_JIT)
${CMAKE_CURRENT_BINARY_DIR}/../src/jit/test/mlir)
endif()
endif()

install(
TARGETS megbrain_test
EXPORT ${MGE_EXPORT_TARGETS}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

Loading…
Cancel
Save