Skip to content

Commit e79cd80

Browse files
authored
profiles/handhelds: Improves OpenCL support (#198)
This removes rocm-opencl-runtime, 5585.74 MiB from AMD handhelds. OpenCL is still available through Rusticl. It also adds Rusticl to Intel handhelds.
1 parent 88a5883 commit e79cd80

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

profiles/pci/handhelds/profiles.toml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ vendor_ids = "1002"
55
device_ids = "1435 163f"
66
hwd_product_name_pattern = '(Jupiter|Galileo)'
77
priority = 6
8-
packages = 'steamos-manager steamos-powerbuttond jupiter-fan-control steamdeck-dsp cachyos-handheld mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon opencl-mesa lib32-opencl-mesa rocm-opencl-runtime'
8+
packages = 'steamos-manager steamos-powerbuttond jupiter-fan-control steamdeck-dsp cachyos-handheld mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon opencl-mesa lib32-opencl-mesa'
99
conditional_packages = """
1010
if grep -q 'Galileo' /sys/devices/virtual/dmi/id/product_name; then
1111
echo 'galileo-mura'
@@ -42,7 +42,7 @@ vendor_ids = "1002"
4242
device_ids = "15bf 15c8"
4343
hwd_product_name_pattern = '(ROG Ally).*'
4444
priority = 6
45-
packages = 'steamos-manager steamos-powerbuttond inputplumber cachyos-handheld mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon opencl-mesa lib32-opencl-mesa rocm-opencl-runtime'
45+
packages = 'steamos-manager steamos-powerbuttond inputplumber cachyos-handheld mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon opencl-mesa lib32-opencl-mesa'
4646
post_install = """
4747
echo "Ally chwd installing..."
4848
echo "Installing audio profile..."
@@ -75,7 +75,7 @@ vendor_ids = "1002"
7575
device_ids = "15bf"
7676
hwd_product_name_pattern = '(83E1)'
7777
priority = 6
78-
packages = 'hhd hhd-ui adjustor cachyos-handheld mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon opencl-mesa lib32-opencl-mesa rocm-opencl-runtime'
78+
packages = 'hhd hhd-ui adjustor cachyos-handheld mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon opencl-mesa lib32-opencl-mesa'
7979
post_install = """
8080
echo "Legion go chwd installing..."
8181
username=$(id -nu 1000)
@@ -109,7 +109,7 @@ vendor_ids = "1002"
109109
device_ids = "1681 15bf"
110110
hwd_product_name_pattern = '(83L3|83N6|83Q2|83Q3)'
111111
priority = 6
112-
packages = 'inputplumber steamos-manager steamos-powerbuttond cachyos-handheld mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon opencl-mesa lib32-opencl-mesa rocm-opencl-runtime'
112+
packages = 'inputplumber steamos-manager steamos-powerbuttond cachyos-handheld mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon opencl-mesa lib32-opencl-mesa'
113113
post_install = """
114114
if [ -d /etc/limine-entry-tool.d ]; then
115115
cat << 'EOF' > /etc/limine-entry-tool.d/20-chwd.conf
@@ -137,18 +137,25 @@ vendor_ids = "8086"
137137
device_ids = "64a0 7d55"
138138
hwd_product_name_pattern = '(A2VM|A1M)'
139139
priority = 6
140-
packages = 'inputplumber steamos-manager steamos-powerbuttond cachyos-handheld mesa lib32-mesa vulkan-intel lib32-vulkan-intel intel-media-driver'
140+
packages = 'inputplumber steamos-manager steamos-powerbuttond cachyos-handheld mesa lib32-mesa vulkan-intel lib32-vulkan-intel intel-media-driver opencl-mesa lib32-opencl-mesa'
141141
post_install = """
142142
echo "Claw chwd installing..."
143143
echo msi-wmi-platform > /usr/lib/modules-load.d/chwd-msi-claw.conf
144144
echo "Installing audio profile..."
145145
mkdir -p /etc/wireplumber/wireplumber.conf.d
146146
ln -s /usr/share/cachyos-handheld/msi-claw/wireplumber/alsa-card0.conf \
147147
/etc/wireplumber/wireplumber.conf.d
148+
echo "Installing OpenCL profile..."
149+
echo "export RUSTICL_ENABLE=iris" > /etc/profile.d/opencl.sh
150+
mkdir -p /etc/environment.d
151+
echo "RUSTICL_ENABLE=iris" > /etc/environment.d/30-opencl.conf
148152
"""
149153
post_remove = """
150154
echo "Claw chwd removing..."
151155
rm -f /usr/lib/modules-load.d/chwd-msi-claw.conf
152156
echo "Removing audio profile..."
153157
rm -f /etc/wireplumber/wireplumber.conf.d/alsa-card0.conf
158+
echo "Removing Opencl profile..."
159+
rm -f /etc/profile.d/opencl.sh
160+
rm -f /etc/environment.d/30-opencl.conf
154161
"""

0 commit comments

Comments
 (0)