How To Install pocl on Fedora 36
Introduction
In this tutorial we learn how to install pocl
on Fedora 36.
What is pocl
Pocl’s goal is to become an efficient open source (MIT-licensed) implementation of the OpenCL 1.2 (and soon OpenCL 2.0) standard. In addition to producing an easily portable open-source OpenCL implementation, another major goal of this project is improving performance portability of OpenCL programs with compiler optimizations, reducing the need for target-dependent manual optimizations. At the core of pocl is the kernel compiler that consists of a set of LLVM passes used to statically transform kernels into work-group functions with multiple work-items, even in the presence of work-group barriers. These functions are suitable for parallelization in multiple ways (SIMD, VLIW, superscalar,…).
We can use yum
or dnf
to install pocl
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install pocl.
Install pocl on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install pocl
using dnf
by running the following command:
sudo dnf -y install pocl
Install pocl on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install pocl
using yum
by running the following command:
sudo yum -y install pocl
How To Uninstall pocl on Fedora 36
To uninstall only the pocl
package we can use the following command:
sudo dnf remove pocl
pocl Package Contents on Fedora 36
/etc/OpenCL/vendors/pocl.icd
/usr/lib/.build-id
/usr/lib/.build-id/42
/usr/lib/.build-id/42/2ce244894e1020565e1949ca5c623669df40dc
/usr/lib/.build-id/67
/usr/lib/.build-id/67/1f670d83bb2202dbc586ec681a651eac909deb
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/6208a614d143e195cb67ec55c1c0236d2799a8
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/fd971e9bbb7c1ee12367bdc17052c761695477
/usr/lib64/libpocl.so.2
/usr/lib64/libpocl.so.2.8.0
/usr/lib64/pocl
/usr/lib64/pocl/libllvmopencl.so
/usr/lib64/pocl/libpocl-devices-basic.so
/usr/lib64/pocl/libpocl-devices-pthread.so
/usr/share/doc/pocl
/usr/share/doc/pocl/README
/usr/share/doc/pocl/accel.rst
/usr/share/doc/pocl/conformance.rst
/usr/share/doc/pocl/cuda.rst
/usr/share/doc/pocl/debug.rst
/usr/share/doc/pocl/design.rst
/usr/share/doc/pocl/development.rst
/usr/share/doc/pocl/extensions.rst
/usr/share/doc/pocl/faq.rst
/usr/share/doc/pocl/features.rst
/usr/share/doc/pocl/host_library.rst
/usr/share/doc/pocl/hsa.rst
/usr/share/doc/pocl/index.rst
/usr/share/doc/pocl/install.rst
/usr/share/doc/pocl/kernel_compiler.rst
/usr/share/doc/pocl/memory_management.rst
/usr/share/doc/pocl/opencl_status.rst
/usr/share/doc/pocl/pocl_binary.rst
/usr/share/doc/pocl/using.rst
/usr/share/licenses/pocl
/usr/share/licenses/pocl/LICENSE
/usr/share/pocl
/usr/share/pocl/include
/usr/share/pocl/include/_builtin_renames.h
/usr/share/pocl/include/_clang_opencl.h
/usr/share/pocl/include/_enable_all_exts.h
/usr/share/pocl/include/_kernel.h
/usr/share/pocl/include/_kernel_c.h
/usr/share/pocl/include/_kernel_constants.h
/usr/share/pocl/include/_libclang_versions_checks.h
/usr/share/pocl/include/opencl-c-base.h
/usr/share/pocl/include/opencl-c.h
/usr/share/pocl/include/pocl.h
/usr/share/pocl/include/pocl_device.h
/usr/share/pocl/include/pocl_image_types.h
/usr/share/pocl/include/pocl_spir.h
/usr/share/pocl/include/pocl_types.h
/usr/share/pocl/kernel-x86_64-redhat-linux-gnu-avx.bc
/usr/share/pocl/kernel-x86_64-redhat-linux-gnu-avx2.bc
/usr/share/pocl/kernel-x86_64-redhat-linux-gnu-avx512.bc
/usr/share/pocl/kernel-x86_64-redhat-linux-gnu-avx_f16c.bc
/usr/share/pocl/kernel-x86_64-redhat-linux-gnu-avx_fma4.bc
/usr/share/pocl/kernel-x86_64-redhat-linux-gnu-sse2.bc
/usr/share/pocl/kernel-x86_64-redhat-linux-gnu-sse41.bc
/usr/share/pocl/kernel-x86_64-redhat-linux-gnu-ssse3.bc
References
Summary
In this tutorial we learn how to install pocl
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).
title: “How To Install pocl on Fedora 36” linkTitle: “pocl” type: “docs” description: “In this tutorial we learn how to install pocl in Fedora 36. pocl is Portable Computing Language - an OpenCL implementation” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/pocl-featured.png
Introduction
In this tutorial we learn how to install pocl
on Fedora 36.
What is pocl
Pocl’s goal is to become an efficient open source (MIT-licensed) implementation of the OpenCL 1.2 (and soon OpenCL 2.0) standard. In addition to producing an easily portable open-source OpenCL implementation, another major goal of this project is improving performance portability of OpenCL programs with compiler optimizations, reducing the need for target-dependent manual optimizations. At the core of pocl is the kernel compiler that consists of a set of LLVM passes used to statically transform kernels into work-group functions with multiple work-items, even in the presence of work-group barriers. These functions are suitable for parallelization in multiple ways (SIMD, VLIW, superscalar,…).
We can use yum
or dnf
to install pocl
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install pocl.
Install pocl on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install pocl
using dnf
by running the following command:
sudo dnf -y install pocl
Install pocl on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install pocl
using yum
by running the following command:
sudo yum -y install pocl
How To Uninstall pocl on Fedora 36
To uninstall only the pocl
package we can use the following command:
sudo dnf remove pocl
pocl Package Contents on Fedora 36
/etc/OpenCL/vendors/pocl.icd
/usr/lib/.build-id
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/4e0f1febf87ab1eeb06f0e0e1b878e81d34c41
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/dd72ea59c6a38589b32ad9c8da914a24ffb454
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/d92b0c538359ff1c49773cc03aae0ec5c0445a
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/72af543c016cede395b128f90cbeef38160021
/usr/lib/libpocl.so.2
/usr/lib/libpocl.so.2.8.0
/usr/lib/pocl
/usr/lib/pocl/libllvmopencl.so
/usr/lib/pocl/libpocl-devices-basic.so
/usr/lib/pocl/libpocl-devices-pthread.so
/usr/share/doc/pocl
/usr/share/doc/pocl/README
/usr/share/doc/pocl/accel.rst
/usr/share/doc/pocl/conformance.rst
/usr/share/doc/pocl/cuda.rst
/usr/share/doc/pocl/debug.rst
/usr/share/doc/pocl/design.rst
/usr/share/doc/pocl/development.rst
/usr/share/doc/pocl/extensions.rst
/usr/share/doc/pocl/faq.rst
/usr/share/doc/pocl/features.rst
/usr/share/doc/pocl/host_library.rst
/usr/share/doc/pocl/hsa.rst
/usr/share/doc/pocl/index.rst
/usr/share/doc/pocl/install.rst
/usr/share/doc/pocl/kernel_compiler.rst
/usr/share/doc/pocl/memory_management.rst
/usr/share/doc/pocl/opencl_status.rst
/usr/share/doc/pocl/pocl_binary.rst
/usr/share/doc/pocl/using.rst
/usr/share/licenses/pocl
/usr/share/licenses/pocl/LICENSE
/usr/share/pocl
/usr/share/pocl/include
/usr/share/pocl/include/_builtin_renames.h
/usr/share/pocl/include/_clang_opencl.h
/usr/share/pocl/include/_enable_all_exts.h
/usr/share/pocl/include/_kernel.h
/usr/share/pocl/include/_kernel_c.h
/usr/share/pocl/include/_kernel_constants.h
/usr/share/pocl/include/_libclang_versions_checks.h
/usr/share/pocl/include/opencl-c-base.h
/usr/share/pocl/include/opencl-c.h
/usr/share/pocl/include/pocl.h
/usr/share/pocl/include/pocl_device.h
/usr/share/pocl/include/pocl_image_types.h
/usr/share/pocl/include/pocl_spir.h
/usr/share/pocl/include/pocl_types.h
/usr/share/pocl/kernel-i686-redhat-linux-gnu-avx.bc
/usr/share/pocl/kernel-i686-redhat-linux-gnu-avx2.bc
/usr/share/pocl/kernel-i686-redhat-linux-gnu-avx512.bc
/usr/share/pocl/kernel-i686-redhat-linux-gnu-avx_f16c.bc
/usr/share/pocl/kernel-i686-redhat-linux-gnu-avx_fma4.bc
/usr/share/pocl/kernel-i686-redhat-linux-gnu-sse2.bc
/usr/share/pocl/kernel-i686-redhat-linux-gnu-sse41.bc
/usr/share/pocl/kernel-i686-redhat-linux-gnu-ssse3.bc
References
Summary
In this tutorial we learn how to install pocl
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).