# This file was generated by the YaTool build system (https://github.com/yandex/yatool),
# from a source YaTool build configuration provided in ya.make files.
#
# If the repository supports both CMake and ya build configurations, please modify both of them.
#
# If only CMake build configuration is supported then modify only CMake files and note that only
# simple modifications are allowed like adding source-files to targets or 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 easily ported back to the ya build
# system may be rejected.
#
# Please refer to the build instructions in the repository for more information about manual
# changes in this file.

add_executable(cuda_util)


target_link_libraries(cuda_util PUBLIC
  contrib-libs-linux-headers
  contrib-libs-cxxsupp
  yutil
  build-cow-on
  cpp-testing-unittest
  catboost-cuda-cuda_lib
  catboost-cuda-cuda_util
)

target_allocator(cuda_util
  cpp-malloc-jemalloc
)

target_link_options(cuda_util PRIVATE
  -ldl
  -lrt
  -Wl,--no-as-needed
  -fPIC
  -fPIC
  -lpthread
  -lrt
  -ldl
  -lcudadevrt
  -lculibos
  -lcudart_static
)

target_sources(cuda_util PRIVATE
  ${PROJECT_SOURCE_DIR}/catboost/cuda/mpi_ut/main.cpp
  ${PROJECT_SOURCE_DIR}/catboost/cuda/cuda_util/ut/test_compression_gpu.cpp
  ${PROJECT_SOURCE_DIR}/catboost/cuda/cuda_util/ut/test_fill.cpp
  ${PROJECT_SOURCE_DIR}/catboost/cuda/cuda_util/ut/test_reduce.cpp
  ${PROJECT_SOURCE_DIR}/catboost/cuda/cuda_util/ut/test_reorder_and_partition.cpp
  ${PROJECT_SOURCE_DIR}/catboost/cuda/cuda_util/ut/test_scan.cpp
  ${PROJECT_SOURCE_DIR}/catboost/cuda/cuda_util/ut/test_segmented_scan.cpp
  ${PROJECT_SOURCE_DIR}/catboost/cuda/cuda_util/ut/test_segmented_sort.cpp
  ${PROJECT_SOURCE_DIR}/catboost/cuda/cuda_util/ut/test_sort.cpp
  ${PROJECT_SOURCE_DIR}/catboost/cuda/cuda_util/ut/test_transform.cpp
)


vcs_info(cuda_util)
