CMakeLists.txt 623 字节
Newer Older
1 2
IF(WITH_GPU)
    add_subdirectory(cuda)
3
    nv_library(gpu_info SRCS gpu_info.cc DEPS phi_gpu_info gflags glog enforce monitor dynload_cuda)
4 5 6 7 8

    nv_test(cuda_helper_test SRCS cuda_helper_test.cu)
    nv_test(cudnn_desc_test SRCS cudnn_desc_test.cc DEPS dynload_cuda)
ELSEIF(WITH_ROCM)
    add_subdirectory(rocm)
9
    hip_library(gpu_info SRCS gpu_info.cc DEPS phi_gpu_info gflags glog enforce monitor dynload_cuda)
10 11 12 13 14 15

    hip_test(cuda_helper_test SRCS cuda_helper_test.cu)
    hip_test(cudnn_desc_test SRCS cudnn_desc_test.cc DEPS dynload_cuda)
ENDIF()

cc_library(gpu_resource_pool SRCS gpu_resource_pool.cc DEPS gpu_info)