{"id":15059213,"url":"https://github.com/sukhmeetbawa/opencl-amd-fedora","last_synced_at":"2025-10-04T18:31:31.971Z","repository":{"id":39000841,"uuid":"443692984","full_name":"sukhmeetbawa/OpenCL-AMD-Fedora","owner":"sukhmeetbawa","description":"AMD OpenCL userspace drivers for Fedora. Currently not working for fedora 37","archived":true,"fork":false,"pushed_at":"2022-12-31T04:59:36.000Z","size":669,"stargazers_count":91,"open_issues_count":4,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-09-30T05:05:27.692Z","etag":null,"topics":["amd","fedora-workstation","linux","opencl","rocm"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sukhmeetbawa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-02T05:55:39.000Z","updated_at":"2024-09-23T11:04:53.000Z","dependencies_parsed_at":"2023-01-31T18:01:53.133Z","dependency_job_id":null,"html_url":"https://github.com/sukhmeetbawa/OpenCL-AMD-Fedora","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukhmeetbawa%2FOpenCL-AMD-Fedora","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukhmeetbawa%2FOpenCL-AMD-Fedora/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukhmeetbawa%2FOpenCL-AMD-Fedora/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukhmeetbawa%2FOpenCL-AMD-Fedora/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sukhmeetbawa","download_url":"https://codeload.github.com/sukhmeetbawa/OpenCL-AMD-Fedora/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235289300,"owners_count":18965918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amd","fedora-workstation","linux","opencl","rocm"],"created_at":"2024-09-24T22:39:13.713Z","updated_at":"2025-10-04T18:31:31.602Z","avatar_url":"https://github.com/sukhmeetbawa.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenCL-AMD-Fedora\n\nOpenCL userspace driver as provided in the amdgpu-pro driver stack. This package is intended to work along with the free amdgpu stack for Fedora Workstation (unlikely to work on Silverblue). Similiar to https://aur.archlinux.org/packages/opencl-amd/\n\nOther functionality includes `Portable-ProGL`, a portable configuration of the proprietary OpenGL stack from `amdgpu-pro`. This allows the system to retain the standard, better performing free openGL stack, while also allowing users to configure applications to use the `amdgpu-pro` version of OpenGL.\n\n`Patch-Davinci-Resolve` will patch Davinci Resolve to use `Portable-ProGL`, as well as fix an audio delay bug by installing `alsa-plugins-pulseaudio` if it's not already installed. If your only goal is to run Resolve, this function is pretty much your one-click (one keyboard press?) solution for the woes that come with Resolve + an AMD GPU on Fedora.\n\n`Install-HIP-Latest` will install the latest version of HIP (Heterogeneous-Compute Interface for Portability). Somewhat experimental with this script.\n\n## Installation\n\n```\ngit clone https://github.com/sukhmeetbawa/OpenCL-AMD-Fedora.git\ncd ./OpenCL-AMD-Fedora\n./opencl-amd.sh\n```\n## Usage \n\nThe script will prompt you to select which portions of the program you want to use.\n\n\n## Explanation of all functionality\n### `Install-OpenCL-Latest`\nCompatible with Vega GPUs and newer. Automatically adds repositories and dependencies. \n\n### `Install-OpenCL-Legacy`\nCompatible with Arctic Islands/Polaris. Installs the last version of the driver compatible with these GPUs (21.30 targeting RHEL 8.4). Yeah, I couldn't believe AMD would make 3 year old GPU obsolete either. The future is now. Automatically installs a local repository on the system. Remote dependencies are added automatically.\n\n### `Portable-ProGL` \nAfter installation, drivers will be located at `$HOME/.amdgpu-progl-portable`.\n\n### `Patch-Davinci-Resolve` \nFirst installs `Portable-ProGL` automatically. The script will then edit the launch arguments of the .desktop file located at `/usr/share/applications/com.blackmagicdesign.resolve.desktop`. A backup will be created in the same directory, labeled `com.blackmagicdesign.resolve.desktop.bak`. \n\n### `Install-HIP-Latest`\nInstalls the latest version of HIP (Heterogeneous-Compute Interface for Portability). Somewhat experimental with this script.\n\n### `Uninstall-OpenCL`\nRemoves either version of OpenCL installed with this script - latest or legacy. Removes repositories added by this script. Note: if mesa OpenCL was previously uninstalled by this script, it will NOT be reinstalled. For new users, this will NOT affect the bootability of your system.\n\n### `Uninstall-ProGL`\nUninstalls `Portable-ProGL` from `$HOME`. The script will check if Davinci Resolve has been patched, and if so, it will restore the default configuration. The uninstallation will then remove the drivers in the user's `$HOME` directory.\n\n\n\n## Other\n\nIn the future, automatic patching of the `.bashrc` file to provide a `proGL ()` function is possible. Keep in mind, you do/will still need to edit the .desktop files or executable arguments for whatever program you are/will be using. If you know this is something you want to do, you can manually add this to your `.bashrc` file to more easily use `Portable-ProGL` with other applications as follows:\n\n```\nprogl () \n{\n\texport LD_LIBRARY_PATH=\"/home/$USER/.amdgpu-progl-portable/opt/amdgpu-pro/lib64:${LD_LIBRARY_PATH}\"\n\texport LIBGL_DRIVERS_PATH=\"/home/$USER/.amdgpu-progl-portable/usr/lib64/dri/\"\n\texport dri_driver=\"amdgpu\"\n}\n\n```\n\n## Screenshots\n\nScreenshots that opencl is succesfully installed.\n\n### clinfo\n![alt text](./Screenshots/clinfo.png)\n### Blender 2.93 LTS\n![alt text](./Screenshots/blender.png)\n\n## Credits\nhttps://github.com/Koppajin\n\nhttps://www.reddit.com/r/Fedora/comments/m2il41/guide_installing_opencl_alongside_mesa_drivers/\n\nhttps://www.reddit.com/r/Fedora/comments/nprppu/guide_workaround_to_install_amdgpupro_opencl/\n\nhttps://github.com/GloriousEggroll/rpm-amdgpu-pro-opencl\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsukhmeetbawa%2Fopencl-amd-fedora","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsukhmeetbawa%2Fopencl-amd-fedora","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsukhmeetbawa%2Fopencl-amd-fedora/lists"}