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.

481 B
Raw Blame
#pragma once

#include <cstddef>
#include <cstdint>
#include <ATen/Tensor.h>

// Host-memory registration, used by the tensor-parallel shared arena and by the CPU expert
// offload segment

void cuda_host_register(uintptr_t ptr, size_t nbytes, unsigned int flags);
void cuda_host_unregister(uintptr_t ptr);
uintptr_t cuda_host_get_device_pointer(uintptr_t ptr);
int cuda_device_get_attribute(int attr, int device);
at::Tensor pinned_cuda_view(const at::Tensor& t, int64_t device);