CMakeLists.txt 486 字节
Newer Older
1 2 3 4 5 6 7 8
file(
  GLOB EIGEN_CC_SOURCES
  RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
  "*.cc")
file(
  GLOB EIGEN_CU_SOURCES
  RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
  "*.cu")
9
if(WITH_GPU)
10 11 12 13
  nv_library(
    eigen_function
    SRCS ${EIGEN_CC_SOURCES} ${EIGEN_CU_SOURCES}
    DEPS eigen3)
14
elseif(WITH_ROCM)
15 16 17 18
  hip_library(
    eigen_function
    SRCS ${EIGEN_CC_SOURCES} ${EIGEN_CU_SOURCES}
    DEPS eigen3)
19
else()
20 21 22 23
  cc_library(
    eigen_function
    SRCS ${EIGEN_CC_SOURCES}
    DEPS eigen3)
24
endif()