kokkos

Kokkos C++ Performance Portability Programming EcoSystem: The Programming Model

Latest version: 5.2.0

Add to xmake.lua

add_requires("kokkos 5.2.0")

Learn how to add and link packages with Xmake →

Information

License
Apache-2.0
Recipe updated
2026-08-05T04:51:28.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • macosx: x86_64
  • windows: x64

Options

arch
Enable architecture-specific optimizations. · Type: string · Default: native
cuda
Enable CUDA support. · Type: boolean · Default: false
threads
Enable thread support. · Type: boolean · Default: true

Versions

  • 4.0.01
  • 4.2.00
  • 4.2.01
  • 4.3.00
  • 4.3.01
  • 4.4.00
  • 4.6.00
  • 4.6.01
  • 4.6.02
  • 4.7.01
  • 5.0.0
  • 5.0.1
  • 5.0.2
  • 5.1.0
  • 5.1.1
  • 5.2.0

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "kokkos 5.2.0"

show info

xrepo info "kokkos"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("kokkos 5.2.0")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("kokkos")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "kokkos 5.2.0" shell