NOTICE
======

This crate carries source derived from the projects below. Every derived file
keeps its upstream copyright header; this file names the projects, their
licences and what was changed. Each is licensed under the Apache License 2.0,
the text of which is the repository's `LICENSE`.


FlashInfer
----------

    Upstream:   https://github.com/flashinfer-ai/flashinfer, v0.6.15
    Copyright:  Copyright (c) 2023-2025 by FlashInfer team
    Licence:    Apache License 2.0
    Derived:    kernels/attn/fa2/*.cuh

The FA2 paged prefill and decode, their merge and the FA2 MLA kernel, with the
headers they need. Changed from upstream:

  * moved from `kernels/flashinfer/` into `kernels/attn/fa2/`, the namespace
    `flashinfer` renamed `pie::attn::fa2` and the `FLASHINFER_` macros
    `PIE_FA2_`;
  * cut to what Pie launches: kernels nothing names (the single-request and
    cascade kernels, the KV append and rotary kernels) are deleted;
  * host-side code removed or guarded so NVRTC can compile the device text;
  * a sliding-window variant added to the paged decode;
  * comments cut (commit 1f667f90, 2026-09-09).

A diff against upstream v0.6.15 is the exact record of every change.


vLLM, via FlashInfer
--------------------

    Copyright:  Copyright (c) 2023-2025 by FlashInfer team;
                vLLM: Copyright contributors to the vLLM project
    Licence:    Apache License 2.0
    Derived:    kernels/collective/p2p.cuh

The peer all-reduce pieces FlashInfer adapts from vLLM, used by
`kernels/collective/all_reduce.cu`. Changed as FlashInfer above (path,
namespace `pie::collective::p2p`, macros, unused kernels deleted). The
TensorRT-LLM fused all-reduce header carried beside it was used by nothing
and is gone.


CUDA toolkit and CCCL headers
-----------------------------

Not carried. Every file under `shim/` is written here; none is copied from a
CUDA toolkit or a CCCL checkout.
