2024-09-26 21:31:07 +00:00
|
|
|
project(tgiccl LANGUAGES C CXX CUDA)
|
2024-09-25 12:27:28 +00:00
|
|
|
|
2024-09-26 21:31:07 +00:00
|
|
|
set(TGICCL_HEADERS tgiccl.hpp TgiCclBackend.hpp)
|
|
|
|
set(TGICCL_SOURCES TgiCclBackend.cpp)
|
2024-09-25 12:27:28 +00:00
|
|
|
|
2024-09-29 12:33:31 +00:00
|
|
|
add_library(tgiccl STATIC ${TGICCL_HEADERS} ${TGICCL_SOURCES})
|
2024-09-27 16:53:56 +00:00
|
|
|
target_link_libraries(tgiccl PUBLIC tgi_common fmt::fmt spdlog::spdlog CUDA::nvml ${TORCH_LIBRARIES})
|
2024-09-26 21:31:07 +00:00
|
|
|
|
|
|
|
add_executable(test_tgiccl test_tgiccl.cpp)
|
2024-09-27 16:53:56 +00:00
|
|
|
target_link_libraries(test_tgiccl PUBLIC tgiccl fmt::fmt spdlog::spdlog ${TORCH_LIBRARIES})
|