Adds the ability to modify 'rdc' options

Modifying the /opt/rocm/etc/rdc file modifies RDC launch options.  If
the file doesn't exist, the service should still launch (though a new
file should likely be included with the next released package of 'rdc'.

Change-Id: I1a1891e9c5c3e6048754eb555779a97a170754c0


[ROCm/rdc commit: de3cb36ce0]
This commit is contained in:
Brandon Bagwell
2024-03-19 20:20:04 +00:00
committato da Galantsev, Dmitrii
parent f74f1684de
commit a459fe4150
3 ha cambiato i file con 11 aggiunte e 2 eliminazioni
+6 -1
Vedi File
@@ -72,8 +72,10 @@ set(SERVER_SRC_LIST
message("SERVER_SRC_LIST=${SERVER_SRC_LIST}")
set(SERVER_DAEMON_EXE "rdcd")
configure_file("rdc.service.in" "${PROJECT_BINARY_DIR}/rdc.service" @ONLY)
set(SERVICE_FILE_NAME "rdc.service")
configure_file("rdc.service.in" "${PROJECT_BINARY_DIR}/${SERVICE_FILE_NAME}" @ONLY)
set(SERVER_CONFIG_FILE "rdc_options")
configure_file("${SERVER_CONFIG_FILE}" "${PROJECT_BINARY_DIR}/${SERVER_CONFIG_FILE}" COPYONLY)
link_directories(${SMI_LIB_DIR})
@@ -94,6 +96,9 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${SERVER_DAEMON_EXE}
install(FILES ${PROJECT_BINARY_DIR}/${SERVICE_FILE_NAME}
DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/${RDC}
COMPONENT ${SERVER_COMPONENT})
install(FILES ${PROJECT_BINARY_DIR}/${SERVER_CONFIG_FILE}
DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}
COMPONENT ${SERVER_COMPONENT})
message("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&")
message(" Finished Cmake Server ")
+2 -1
Vedi File
@@ -13,6 +13,7 @@ After=network.target
#Requires=
[Service]
EnvironmentFile=-/@CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_SYSCONFDIR@/rdc_options
User=rdc
Group=rdc
@@ -25,7 +26,7 @@ AmbientCapabilities=CAP_DAC_OVERRIDE
# ExecStartPre=
# update-alternative has been run for rdcd and
# soft link will be available in usr/bin
ExecStart=rdcd
ExecStart=rdcd $RDC_OPTS
# If we need to start anything after rdcd use this
# ExecStartPost=
+3
Vedi File
@@ -0,0 +1,3 @@
# Append 'rdc' daemon parameters here
RDC_OPTS=""
#RDC_OPTS="-p 50051 -u -d"