Skip to content

Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.

519 B
Raw Blame
#pragma once

#include <ATen/Tensor.h>
#include "context.cuh"

// ctx is the host VA of the registered shared-memory region, used for host-side access. ctx_dev is the device
// alias of the same region (cudaHostGetDevicePointer), passed to kernels. The two are identical on platforms
// where the host pointer is directly usable in kernels (Linux), but differ under WDDM.
void pg_barrier
(
    uintptr_t ctx,
    uintptr_t ctx_dev,
    std::vector<uintptr_t> devices,
    int this_device,
    at::Tensor& abort_flag
);