Skip to content

Commit cd9d06f

Browse files
authored
Allow hip sources to be directly included when compiling for rocm. (#12087)
1 parent ebd8c66 commit cd9d06f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/utils.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ function (hipify_sources_target OUT_SRCS NAME ORIG_SRCS)
5858
#
5959
set(SRCS ${ORIG_SRCS})
6060
set(CXX_SRCS ${ORIG_SRCS})
61-
list(FILTER SRCS EXCLUDE REGEX "\.(cc)|(cpp)$")
62-
list(FILTER CXX_SRCS INCLUDE REGEX "\.(cc)|(cpp)$")
61+
list(FILTER SRCS EXCLUDE REGEX "\.(cc)|(cpp)|(hip)$")
62+
list(FILTER CXX_SRCS INCLUDE REGEX "\.(cc)|(cpp)|(hip)$")
6363

6464
#
6565
# Generate ROCm/HIP source file names from CUDA file names.

0 commit comments

Comments
 (0)