Skip to content

Commit

Permalink
profiles/graphic_drivers: Add rusticl variable for user services (#147)
Browse files Browse the repository at this point in the history
Signed-off-by: Vasiliy Stelmachenok <[email protected]>
  • Loading branch information
ventureoo authored Dec 18, 2024
1 parent d99ec89 commit 5136b16
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions profiles/pci/graphic_drivers/profiles.toml
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,13 @@ post_install = """
if [ -z "$(lspci -d "10de:*:030x")" ]; then
# Force the use of Rusticl, otherwise it will be just a stub
echo "export RUSTICL_ENABLE=nouveau" > /etc/profile.d/opencl.sh
mkdir -p /etc/environment.d
echo "RUSTICL_ENABLE=nouveau" > /etc/environment.d/30-opencl.conf
fi
"""
post_remove = """
rm -f /etc/profile.d/opencl.sh
rm -f /etc/environment.d/30-opencl.conf
"""

[intel]
Expand All @@ -203,10 +206,13 @@ post_install = """
if [ -z "$(lspci -d "10de:*:030x")" ]; then
# Force the use of Rusticl, otherwise it will be just a stub
echo "export RUSTICL_ENABLE=iris" > /etc/profile.d/opencl.sh
mkdir -p /etc/environment.d
echo "RUSTICL_ENABLE=iris" > /etc/environment.d/30-opencl.conf
fi
"""
post_remove = """
rm -f /etc/profile.d/opencl.sh
rm -f /etc/environment.d/30-opencl.conf
"""

[amd]
Expand All @@ -225,10 +231,13 @@ post_install = """
if [ -z "$(lspci -d "10de:*:030x")" ]; then
# Force the use of Rusticl, otherwise it will be just a stub
echo "export RUSTICL_ENABLE=radeonsi" > /etc/profile.d/opencl.sh
mkdir -p /etc/environment.d
echo "RUSTICL_ENABLE=radeonsi" > /etc/environment.d/30-opencl.conf
fi
"""
post_remove = """
rm -f /etc/profile.d/opencl.sh
rm -f /etc/environment.d/30-opencl.conf
"""

[fallback]
Expand Down

0 comments on commit 5136b16

Please sign in to comment.