CMakeLists.txt 387 字节
Newer Older
W
Wilber 已提交
1 2 3 4 5 6 7 8 9
if(WITH_GPU)
  add_subdirectory(cuda)
  nv_library(pten_gpu_info SRCS gpu_info.cc DEPS pten_cuda_info gflags glog enforce pten_dynload_cuda)
elseif(WITH_ROCM)
  add_subdirectory(rocm)
  hip_library(pten_gpu_info SRCS gpu_info.cc DEPS pten_rocm_info gflags glog enforce pten_dynload_cuda)
endif()

cc_library(gpu_context SRCS gpu_context.cc DEPS pten_device_context pten_gpu_info eigen3)