Skip to content

Commit

Permalink
fix bug when compile with native cuda arch
Browse files Browse the repository at this point in the history
  • Loading branch information
USTCKAY committed Nov 18, 2024
1 parent 9d0cfc8 commit a6af079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3rdparty/cmake/FindPytorch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ macro(translate_arch_string input output)
string(REGEX REPLACE "([1-9])([0-9])-real" "\\1.\\2" version "${input}")
elseif("${input}" MATCHES "([0-9]+)")
string(REGEX REPLACE "([1-9])([0-9])" "\\1.\\2+PTX" version "${input}")
elseif(input STREQUAL "native")
elseif("${input}" STREQUAL "native")
set(version "Auto")
else()
message(FATAL_ERROR "Invalid architecture string: ${input}")
Expand Down

0 comments on commit a6af079

Please sign in to comment.