CMakeLists.txt 379 字节
Newer Older
W
Wilber 已提交
1 2
if(WITH_GPU)
  add_subdirectory(cuda)
3
  nv_library(phi_gpu_info SRCS gpu_info.cc DEPS phi_cuda_info gflags glog enforce phi_dynload_cuda)
W
Wilber 已提交
4 5
elseif(WITH_ROCM)
  add_subdirectory(rocm)
6
  hip_library(phi_gpu_info SRCS gpu_info.cc DEPS phi_rocm_info gflags glog enforce phi_dynload_cuda)
W
Wilber 已提交
7 8
endif()

9
cc_library(gpu_context SRCS gpu_context.cc DEPS phi_device_context phi_gpu_info eigen3)