Skip to content

Commit 69149b4

Browse files
authored
SWDEV-508959 - [6.4 Preview] Remove hiprtc symbols from hip library (#143)
1 parent a4e472d commit 69149b4

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

hipamd/src/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -205,20 +205,9 @@ if(__HIP_ENABLE_PCH)
205205
target_sources(amdhip64 PRIVATE ${CMAKE_BINARY_DIR}/hip_pch.o)
206206
endif()
207207

208-
set(HIPRTC_OBJECTS)
209208
# Add hiprtc
210209
add_subdirectory(hiprtc)
211210

212-
target_compile_definitions(amdhip64 PRIVATE __HIP_ENABLE_RTC)
213-
if(BUILD_SHARED_LIBS)
214-
target_link_libraries(amdhip64 PRIVATE ${HIPRTC_OBJECTS})
215-
add_dependencies(amdhip64 hiprtc-builtins)
216-
INSTALL(TARGETS hiprtc-builtins
217-
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
218-
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
219-
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
220-
endif()
221-
222211
#############################
223212
# Profiling API support
224213
#############################

hipamd/src/hiprtc/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -225,15 +225,6 @@ add_custom_command(
225225
target_link_libraries(hiprtc PRIVATE ${HIPRTC_GEN_OBJ})
226226
target_compile_definitions(hiprtc PRIVATE __HIP_ENABLE_RTC)
227227

228-
if(NOT WIN32)
229-
if (BUILD_SHARED_LIBS)
230-
target_sources(amdhip64 PRIVATE hiprtc.cpp ../hip_comgr_helper.cpp hiprtcInternal.cpp)
231-
endif()
232-
endif()
233-
234-
list(APPEND HIPRTC_OBJECTS ${HIPRTC_GEN_OBJ})
235-
set(HIPRTC_OBJECTS ${HIPRTC_OBJECTS} PARENT_SCOPE)
236-
237228
add_dependencies(hiprtc hiprtc-builtins)
238229
install(TARGETS hiprtc-builtins
239230
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}

0 commit comments

Comments
 (0)