KernelAbstractions.jl
  • Home
  • Quickstart
  • Writing kernels
  • Examples
    • Memcopy
    • Memcopy with static NDRange
    • Naive Transpose
    • Measuring performance
    • Matmul
    • NUMA-aware SAXPY
    • Atomic operations with Atomix.jl
  • API
  • Extras
    • Unroll macro
  • Notes for implementations
Version
  • Extras
  • Unroll macro
  • Unroll macro


Unroll macro

KernelAbstractions.Extras.LoopInfo.@unroll — Macro
@unroll expr

Takes a for loop as expr and informs the LLVM unroller to fully unroll it, if it is safe to do so and the loop count is known.

source
@unroll N expr

Takes a for loop as expr and informs the LLVM unroller to unroll it N times, if it is safe to do so.

source
« APINotes for implementations »

Powered by Documenter.jl and the Julia Programming Language.

Settings


This document was generated with Documenter.jl version 1.8.1 on Friday 14 February 2025. Using Julia version 1.11.3.