llama_cpp_sys 0.3.2

Automatically-generated bindings to llama.cpp's C API
Documentation
1
2
3
4
5
6
7
import os


def compile_source(source):
    open("tmp_kp_shader.comp", "w").write(source)
    os.system("glslangValidator -V tmp_kp_shader.comp -o tmp_kp_shader.comp.spv")
    return open("tmp_kp_shader.comp.spv", "rb").read()