# 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_library(cpp-cuda-wrappers)


target_link_libraries(cpp-cuda-wrappers PUBLIC
  contrib-libs-linux-headers
  contrib-libs-cxxsupp
  yutil
  internal-platform-cuda
  cpp-cuda-exception
  cpp-threading-future
)

target_sources(cpp-cuda-wrappers PRIVATE
  ${PROJECT_SOURCE_DIR}/library/cpp/cuda/wrappers/base.cpp
  ${PROJECT_SOURCE_DIR}/library/cpp/cuda/wrappers/run_gpu_program.cpp
  ${PROJECT_SOURCE_DIR}/library/cpp/cuda/wrappers/cuda_event.cpp
  ${PROJECT_SOURCE_DIR}/library/cpp/cuda/wrappers/arch.cpp
  ${PROJECT_SOURCE_DIR}/library/cpp/cuda/wrappers/stream_pool.cpp
  ${PROJECT_SOURCE_DIR}/library/cpp/cuda/wrappers/cuda_vec.cpp
  ${PROJECT_SOURCE_DIR}/library/cpp/cuda/wrappers/cuda_graph.cpp
  ${PROJECT_SOURCE_DIR}/library/cpp/cuda/wrappers/stream_capture.cpp
)

target_cuda_sources(cpp-cuda-wrappers PRIVATE
  ${PROJECT_SOURCE_DIR}/library/cpp/cuda/wrappers/kernel.cu
  ${PROJECT_SOURCE_DIR}/library/cpp/cuda/wrappers/kernel_helpers.cu
)


target_cuda_flags(cpp-cuda-wrappers
  -lineinfo
  --use_fast_math
  -Wno-deprecated-gpu-targets
)
