INSTALL - Always add video group to rdc user
Previously we relied on "render" to be enough and only used "video" as a fallback. On some systems like SLES this might not be sufficient. One issue happened when starting rocprofiler as part of RDC initialization: what(): hsa error code: 4104 HSA_STATUS_ERROR_OUT_OF_RESOURCES The issue only happened when RDC was started with systemd. Turns out "rdc" user (under which systemctl starts RDC) only had render but not video group. Adding video group solved the issue. Change-Id: Idf6a9521ae72a0b28a428869aa7ab1edde3ae259 Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
Dieser Commit ist enthalten in:
1 Ursprung
9155768fe7
Commit
4ebc34095c
2 Dateien geändert
+9
-4
Keine Dateien entsprechen Ihrer Suche
@@ -62,11 +62,14 @@ do_create_rdc_user() {
|
|||||||
--no-create-home \
|
--no-create-home \
|
||||||
--disabled-password \
|
--disabled-password \
|
||||||
rdc
|
rdc
|
||||||
|
# only add render if it exists
|
||||||
if [ $(getent group render) ]; then
|
if [ $(getent group render) ]; then
|
||||||
usermod -a -G render rdc
|
usermod -a -G render rdc
|
||||||
else
|
|
||||||
usermod -a -G video rdc
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# add video always
|
||||||
|
usermod -a -G video rdc
|
||||||
|
|
||||||
# Make sure this doesn't return non-zero if an id already exists
|
# Make sure this doesn't return non-zero if an id already exists
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,12 +53,14 @@ do_update_alternatives(){
|
|||||||
# https://fedoraproject.org/wiki/Packaging%3aUsersAndGroups
|
# https://fedoraproject.org/wiki/Packaging%3aUsersAndGroups
|
||||||
do_create_rdc_user() {
|
do_create_rdc_user() {
|
||||||
useradd -r -s /sbin/nologin rdc
|
useradd -r -s /sbin/nologin rdc
|
||||||
|
# only add render if it exists
|
||||||
if [ $(getent group render) ]; then
|
if [ $(getent group render) ]; then
|
||||||
usermod -a -G render rdc
|
usermod -a -G render rdc
|
||||||
else
|
|
||||||
usermod -a -G video rdc
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# add video always
|
||||||
|
usermod -a -G video rdc
|
||||||
|
|
||||||
# Make sure this doesn't return non-zero if an id already exists
|
# Make sure this doesn't return non-zero if an id already exists
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren