Skip to content

Commit

Permalink
Allow hip sources to be directly included when compiling for rocm. (v…
Browse files Browse the repository at this point in the history
…llm-project#12087)

Signed-off-by: ice-tong <[email protected]>
  • Loading branch information
tvirolai-amd authored and ice-tong committed Jan 18, 2025
1 parent 79b8ba7 commit a322a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ function (hipify_sources_target OUT_SRCS NAME ORIG_SRCS)
#
set(SRCS ${ORIG_SRCS})
set(CXX_SRCS ${ORIG_SRCS})
list(FILTER SRCS EXCLUDE REGEX "\.(cc)|(cpp)$")
list(FILTER CXX_SRCS INCLUDE REGEX "\.(cc)|(cpp)$")
list(FILTER SRCS EXCLUDE REGEX "\.(cc)|(cpp)|(hip)$")
list(FILTER CXX_SRCS INCLUDE REGEX "\.(cc)|(cpp)|(hip)$")

#
# Generate ROCm/HIP source file names from CUDA file names.
Expand Down

0 comments on commit a322a76

Please sign in to comment.