
# This file was generated by the build system used internally in the Yandex monorepo.
# Only simple modifications are allowed (adding source-files to targets, adding simple properties
# like target_include_directories). These modifications will be ported to original
# ya.make files by maintainers. Any complex modifications which can't be ported back to the
# original buildsystem will not be accepted.



add_executable(catboost-cuda-cuda_lib-ut)
target_link_libraries(catboost-cuda-cuda_lib-ut PUBLIC
  contrib-libs-linux-headers
  contrib-libs-cxxsupp
  yutil
  cpp-testing-unittest_main
  catboost-cuda-cuda_lib
  catboost-cuda-cuda_util
  catboost-libs-helpers
)
target_link_options(catboost-cuda-cuda_lib-ut PRIVATE
  -ldl
  -lrt
  -Wl,--no-as-needed
  -fPIC
  -fPIC
  -lpthread
  -lrt
  -ldl
  -lcudadevrt
  -lculibos
  -lcudart_static
)
target_sources(catboost-cuda-cuda_lib-ut PRIVATE
  ${CMAKE_SOURCE_DIR}/catboost/cuda/cuda_lib/ut/performance_tests.cpp
  ${CMAKE_SOURCE_DIR}/catboost/cuda/cuda_lib/ut/test_all_reduce.cpp
  ${CMAKE_SOURCE_DIR}/catboost/cuda/cuda_lib/ut/test_batch_reduce.cpp
  ${CMAKE_SOURCE_DIR}/catboost/cuda/cuda_lib/ut/test_cache.cpp
  ${CMAKE_SOURCE_DIR}/catboost/cuda/cuda_lib/ut/test_cuda_buffer.cpp
  ${CMAKE_SOURCE_DIR}/catboost/cuda/cuda_lib/ut/test_cuda_manager.cpp
  ${CMAKE_SOURCE_DIR}/catboost/cuda/cuda_lib/ut/test_memory_pool.cpp
  ${CMAKE_SOURCE_DIR}/catboost/cuda/cuda_lib/ut/test_reduce.cpp
  ${CMAKE_SOURCE_DIR}/catboost/cuda/cuda_lib/ut/test_reduce_ring.cpp
  ${CMAKE_SOURCE_DIR}/catboost/cuda/cuda_lib/ut/test_serialization.cpp
)
set_property(
  TARGET
  catboost-cuda-cuda_lib-ut
  PROPERTY
  SPLIT_FACTOR
  1
)
add_yunittest(
  NAME
  catboost-cuda-cuda_lib-ut
  TEST_TARGET
  catboost-cuda-cuda_lib-ut
  TEST_ARG
  --print-before-suite
  --print-before-test
  --fork-tests
  --print-times
  --show-fails
)
set_yunittest_property(
  TEST
  catboost-cuda-cuda_lib-ut
  PROPERTY
  LABELS
  SMALL
)
set_yunittest_property(
  TEST
  catboost-cuda-cuda_lib-ut
  PROPERTY
  PROCESSORS
  1
)
target_allocator(catboost-cuda-cuda_lib-ut
  system_allocator
)
vcs_info(catboost-cuda-cuda_lib-ut)
