How To Install kokkos on Fedora 34

kokkos is Kokkos C++ Performance Portability Programming

Introduction

In this tutorial we learn how to install kokkos on Fedora 34.

What is kokkos

Kokkos Core implements a programming model in C++ for writing performance portable applications targeting all major HPC platforms. For that purpose it provides abstractions for both parallel execution of code and data management. Kokkos is designed to target complex node architectures with N-level memory hierarchies and multiple types of execution resources. It currently can use OpenMP, Pthreads and CUDA as backend programming models.

We can use yum or dnf to install kokkos on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install kokkos.

Install kokkos on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install kokkos using dnf by running the following command:

sudo dnf -y install kokkos

Install kokkos on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install kokkos using yum by running the following command:

sudo yum -y install kokkos

How To Uninstall kokkos on Fedora 34

To uninstall only the kokkos package we can use the following command:

sudo dnf remove kokkos

kokkos Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/13e3e8038faf17484f11f5f0c972bc14cad997
/usr/lib/.build-id/93
/usr/lib/.build-id/93/9a9260e56914690e0b255a3fab6fe8249bf977
/usr/lib64/libkokkoscontainers.so.3.3.1
/usr/lib64/libkokkoscore.so.3.3.1
/usr/share/doc/kokkos
/usr/share/doc/kokkos/README.md
/usr/share/licenses/kokkos
/usr/share/licenses/kokkos/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/8874b35b2e0f1563d5df6fdfe20415b6bfb045
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/db44d46ecb8854a062de153744cf0c79aaa18a
/usr/lib64/libkokkoscontainers.so.3.4
/usr/lib64/libkokkoscontainers.so.3.4.01
/usr/lib64/libkokkoscore.so.3.4
/usr/lib64/libkokkoscore.so.3.4.01
/usr/share/doc/kokkos
/usr/share/doc/kokkos/README.md
/usr/share/licenses/kokkos
/usr/share/licenses/kokkos/LICENSE

References

Summary

In this tutorial we learn how to install kokkos on Fedora 34 using yum and dnf.