GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — try to link lib · TensorArray/TensorArray@f97f3f3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • cmake
    • ta_core_config.cmake
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎cmake/ta_core_config.cmake‎

Copy file name to clipboardExpand all lines: cmake/ta_core_config.cmake
+11-3Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ if(CMAKE_CUDA_COMPILER)
2828
set_property(TARGET tensorarray_core_object PROPERTY CUDA_STANDARD 17)
2929
set_property(TARGET tensorarray_core_object PROPERTY CUDA_STANDARD_REQUIRED ON)
3030
set_property(TARGET tensorarray_core_object PROPERTY CUDA_EXTENSIONS OFF)
31+
set_property(TARGET tensorarray_core_object PROPERTY CUDA_SEPARABLE_COMPILATION ON)
3132
target_include_directories(tensorarray_core_object PRIVATE $<$<COMPILE_LANGUAGE:C,CXX>:${CUDAToolkit_INCLUDE_DIRS}>)
3233
if(MSVC)
3334
target_compile_definitions(tensorarray_core_object PRIVATE TENSOR_ARRAY_CORE_EXPORTS)
@@ -59,9 +60,16 @@ add_library(tensorarray_core SHARED $<TARGET_OBJECTS:tensorarray_core_object>)
5960
add_library(tensorarray_core_static STATIC $<TARGET_OBJECTS:tensorarray_core_object>)
6061

6162
if(CUDAToolkit_FOUND)
62-
set_property(TARGET tensorarray_core PROPERTY CUDA_SEPARABLE_COMPILATION ON)
63-
target_link_libraries(tensorarray_core PRIVATE $<$<LINK_LANGUAGE:C,CXX>:CUDA::cublas>)
64-
target_link_libraries(tensorarray_core_static PRIVATE $<$<LINK_LANGUAGE:C,CXX>:CUDA::cublas>)
63+
target_link_libraries(
64+
tensorarray_core
65+
PRIVATE $<$<LINK_LANGUAGE:C,CXX>:CUDA::cudart>
66+
PRIVATE $<$<LINK_LANGUAGE:C,CXX>:CUDA::cublas>
67+
)
68+
target_link_libraries(
69+
tensorarray_core_static
70+
PRIVATE $<$<LINK_LANGUAGE:C,CXX>:CUDA::cudart_static>
71+
PRIVATE $<$<LINK_LANGUAGE:C,CXX>:CUDA::cublas_static>
72+
)
6573
endif()
6674

6775
install(

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.