Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ if(WITH_TORCH OR WITH_LINKED)
find_library(C10_LIB c10 HINTS ${_torch_lib_dirs} REQUIRED)
set(TORCH_LIBRARIES ${TORCH_LIB} ${TORCH_CPU_LIB} ${C10_LIB})

if(WITH_NVIDIA OR WITH_ILUVATAR)
if(WITH_NVIDIA OR WITH_ILUVATAR OR WITH_THEAD)
find_library(TORCH_CUDA_LIB torch_cuda HINTS ${_torch_lib_dirs} REQUIRED)
find_library(C10_CUDA_LIB c10_cuda HINTS ${_torch_lib_dirs} REQUIRED)
# `torch_cuda` registers CUDA kernels through static initializers, so
Expand Down
2 changes: 2 additions & 0 deletions scripts/generate_torch_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"kMoore",
"kIluvatar",
"kHygon",
"kThead",
"kMars",
)

Expand All @@ -84,6 +85,7 @@
"kMetax",
"kMoore",
"kIluvatar",
"kThead",
"kMars",
)

Expand Down
Loading