mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-20 04:49:54 +00:00
18 lines
464 B
CMake
18 lines
464 B
CMake
configure_file("${PROJECT_SOURCE_DIR}/src/include/config.h.in" "${PROJECT_BINARY_DIR}/src/include/config.h")
|
|
|
|
set(TENSOR_SOURCE
|
|
tensor.cpp;
|
|
device.cpp;
|
|
)
|
|
|
|
add_library(tensor SHARED ${TENSOR_SOURCE})
|
|
target_compile_features(tensor PUBLIC)
|
|
set_target_properties(tensor PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
|
if(DEVICE_BACKEND STREQUAL "CUDA")
|
|
target_link_libraries(tensor nvToolsExt cudart)
|
|
endif()
|
|
|
|
install(TARGETS tensor LIBRARY DESTINATION lib)
|