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
  • Loading branch information
tvirolai-amd authored and Ubuntu committed Jan 19, 2025
1 parent cbe33d5 commit c2cd42b
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 c2cd42b

Please sign in to comment.