37 tok/s from Qwen3-Next-80B (48 GB) on a 32 GB laptop, 24 without drafts vs 2.8 for llama.cpp; reading 62 vs 16 tok/s. Faster than llama.cpp on all 13 models compared in Q4_K_M. LLMs bigger than your RAM, pure C, CPU or GPU.
C avx2ccpu-inferenceggufinference-enginelinuxllmlocal-llmmixture-of-expertsmoenvmequantizationqwen3simdspeculative-decodingvulkan
Release 2026-10-13 (4): vkcheck tells whether a GPU can run Janas-LLM's GPU backend, macOS with MoltenVK included (issue #20)
camauri19c808417244
diff --git a/ChangeLog.md b/ChangeLog.mdindex ddb62ef..5c3fa3c 100644--- a/ChangeLog.md+++ b/ChangeLog.md@@ -2,6 +2,11 @@> Curated, user-facing summary of completed work, newest first.+## [2026-10-13] - vkcheck: can this GPU run Janas-LLM?++- **`vkcheck` tells whether a GPU can run Janas-LLM's GPU backend, and why not**: every requirement with the driver's answer (Vulkan 1.3, buffer addresses, the integer dot product, the subgroup operations the shaders use, the size of a subgroup, host memory imported in place), the decision the engine would take, then three tests on the device: zero-copy, the int8 dot product (exact, and a rough rate that shows whether the driver emulates it) and the float operations that keep the GPU's results the CPU's to the bit. On the development laptop's Arc everything passes, the dot product at 1,711 billion multiply-adds a second. It is a single C file that builds where Janas does not build yet, macOS with MoltenVK included: the first step of the arm64 and Apple Silicon port proposed in issue #20.++## [2026-10-13] - Qwen3-Coder-Next as llama.cpp writes it now- **qwen3next models converted by llama.cpp since early 2026 load** (issue #18, reported by nica-f with unsloth's Qwen3-Coder-Next-Q3_K_M): the recurrent layers' input projection comes as two tensors, `attn_qkv` and `attn_gate`, where the engine wanted the single `ssm_in`, its rows interleaved per key head. Both layouts are read; Qwen3-Coder-Next rewritten in the new one gives the very logits of the old, to the bit, token by token and in blocks.diff --git a/docs/hardware.md b/docs/hardware.mdindex 70cf76c..5f12493 100644--- a/docs/hardware.md+++ b/docs/hardware.md@@ -36,6 +36,8 @@ bin/x86_64-linux/janas-bench <model>The [hardware report form](https://github.com/prabanta-dev/janas/issues/new?template=01-hardware-report.yml) asks for exactly that, in that order. There are two more forms, for [something that went wrong](https://github.com/prabanta-dev/janas/issues/new?template=02-something-went-wrong.yml) and for [a model that will not convert](https://github.com/prabanta-dev/janas/issues/new?template=03-a-model-will-not-work.yml).+**Whether a GPU can run the GPU backend**, and why not: `bin/x86_64-linux/vkcheck` lists what the backend needs with the answer of the GPU's driver, the decision the engine would take, and three short tests on the device (zero-copy, the int8 dot product, the float operations that keep the GPU's results the CPU's to the bit). It builds alone where Janas does not build yet, macOS with MoltenVK included: `cc -O2 tools/vkcheck.c -o vkcheck -ldl -lm` (on macOS without `-ldl -lm`, with `-I/opt/homebrew/include`). Its output is welcome in a hardware report.+**What is most wanted, in order.**1. **CPUs without AVX-VNNI**, and **AMD** — the arithmetic has a path for them and it is the least exercised of all.diff --git a/tools/vkcheck.c b/tools/vkcheck.cnew file mode 100644index 0000000..806dfd6--- /dev/null+++ b/tools/vkcheck.c@@ -0,0 +1,811 @@+/* SPDX-License-Identifier: GPL-3.0-or-later+ Copyright (C) 2026 Maurizio Cammalleri */+/*+ * vkcheck - whether this machine's GPU can run Janas-LLM's GPU backend, and+ * how. Every requirement with its answer, the decision the engine would+ * take (as src/llm/gpu.c takes it), then three tests on that device:+ *+ * zero-copy memory of this program imported by the GPU+ * (VK_EXT_external_memory_host), read and written by a shader,+ * the CPU seeing the result with no copy: an integrated GPU -+ * Apple's under MoltenVK too - is taken only so;+ * dot the integer dot product of four signed bytes against the+ * CPU's, and a rough rate: Janas-LLM's quantized products are+ * made of it, and a driver may emulate it;+ * float fma() rounded once, a precise a * b + c twice, a precise sum+ * in the order written: what keeps the GPU's results the CPU's+ * to the bit, and what a fast-math compiler breaks; whether+ * subnormals survive (for information).+ *+ * A single file, which any C compiler builds where the Vulkan headers are,+ * so that a GPU can be checked where Janas does not build yet (macOS with+ * MoltenVK):+ * cc -O2 tools/vkcheck.c -o vkcheck -ldl -lm (Linux)+ * cc -O2 -I/opt/homebrew/include tools/vkcheck.c -o vkcheck (macOS)+ * The Vulkan library is loaded at run time: the loader, or on macOS MoltenVK+ * itself; vkcheck <library> names another. JANAS_GPU_DEVICE and JANAS_GPU_SG+ * act as on the engine. The shaders are the .comp files in vkcheck/, as SPIR-V+ * in vkcheck/spv.h (vkcheck/gen_spv.sh). Exit 0 when the engine would take a+ * GPU and every test passes.+ */+#if defined(__has_include)+#if __has_include(<vulkan/vulkan.h>)+#define VKCHECK_VULKAN 1+#endif+#endif++#include <math.h>+#include <stdint.h>+#include <stdio.h>+#include <stdlib.h>+#include <string.h>+#include <time.h>++#ifndef VKCHECK_VULKAN+int main(void)+{+ printf("vkcheck: built without the Vulkan headers\n");+ return 2;+}+#else++#define VK_NO_PROTOTYPES+#include <vulkan/vulkan.h>++#ifdef _WIN32+#include <windows.h>+#else+#include <dlfcn.h>+#endif++#include "vkcheck/spv.h"++#define INSTANCE_FNS(X) \+ X(vkDestroyInstance) \+ X(vkEnumeratePhysicalDevices) \+ X(vkGetPhysicalDeviceProperties) \+ X(vkGetPhysicalDeviceProperties2) \+ X(vkGetPhysicalDeviceFeatures2) \+ X(vkGetPhysicalDeviceMemoryProperties) \+ X(vkGetPhysicalDeviceQueueFamilyProperties) \+ X(vkEnumerateDeviceExtensionProperties) \+ X(vkCreateDevice) \+ X(vkGetDeviceProcAddr)+#define DEVICE_FNS(X) \+ X(vkDestroyDevice) \+ X(vkGetDeviceQueue) \+ X(vkCreateBuffer) \+ X(vkDestroyBuffer) \+ X(vkGetBufferMemoryRequirements) \+ X(vkAllocateMemory) \+ X(vkFreeMemory) \+ X(vkBindBufferMemory) \+ X(vkMapMemory) \+ X(vkGetBufferDeviceAddress) \+ X(vkCreateShaderModule) \+ X(vkDestroyShaderModule) \+ X(vkCreatePipelineLayout) \+ X(vkDestroyPipelineLayout) \+ X(vkCreateComputePipelines) \+ X(vkDestroyPipeline) \+ X(vkCreateCommandPool) \+ X(vkDestroyCommandPool) \+ X(vkAllocateCommandBuffers) \+ X(vkBeginCommandBuffer) \+ X(vkEndCommandBuffer) \+ X(vkCmdBindPipeline) \+ X(vkCmdPushConstants) \+ X(vkCmdDispatch) \+ X(vkCmdPipelineBarrier) \+ X(vkCreateFence) \+ X(vkDestroyFence) \+ X(vkResetFences) \+ X(vkQueueSubmit) \+ X(vkWaitForFences)++#define DECLARE(f) static PFN_##f f;+INSTANCE_FNS(DECLARE)+DEVICE_FNS(DECLARE)+static PFN_vkGetInstanceProcAddr gipa;+static PFN_vkGetMemoryHostPointerPropertiesEXT get_host_pointer_props;++static int load(const char *name)+{+#ifdef _WIN32+ HMODULE h = LoadLibraryA(name);+ if (h)+ gipa = (PFN_vkGetInstanceProcAddr)(void (*)(void))GetProcAddress(+ h, "vkGetInstanceProcAddr");+#else+ void *h = dlopen(name, RTLD_NOW | RTLD_LOCAL);+ if (h)+ gipa = (PFN_vkGetInstanceProcAddr)dlsym(h, "vkGetInstanceProcAddr");+#endif+ return gipa != NULL;+}++static double now(void)+{+#ifdef _WIN32+ LARGE_INTEGER c, f;+ QueryPerformanceCounter(&c);+ QueryPerformanceFrequency(&f);+ return (double)c.QuadPart / (double)f.QuadPart;+#else+ struct timespec t;+ clock_gettime(CLOCK_MONOTONIC, &t);+ return (double)t.tv_sec + 1e-9 * (double)t.tv_nsec;+#endif+}++static int has_ext(const VkExtensionProperties *e, uint32_t n, const char *name)+{+ for (uint32_t i = 0; i < n; i++)+ if (!strcmp(e[i].extensionName, name))+ return 1;+ return 0;+}++static const char *yes(int b)+{+ return b ? "yes" : "NO";+}++static const char *type_name(VkPhysicalDeviceType t)+{+ return t == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU ? "discrete"+ : t == VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU ? "integrated"+ : t == VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU ? "virtual"+ : t == VK_PHYSICAL_DEVICE_TYPE_CPU ? "CPU"+ : "other";+}++/* What a device offers and what the engine would do with it. */+struct dev {+ VkPhysicalDevice pd;+ VkPhysicalDeviceProperties p;+ int bda, idp, ballot, arith, clustered, shuffle, compute_subgroups;+ int control, host_import, portability;+ uint32_t sg, sg_min, sg_max, sg_fixed;+ VkDeviceSize import_align;+ uint32_t family;+ int taken;+ char why[160];+};++/* As src/llm/gpu.c decides; *d filled and printed. */+static void examine(VkPhysicalDevice pd, int index, struct dev *d)+{+ memset(d, 0, sizeof(*d));+ d->pd = pd;+ vkGetPhysicalDeviceProperties(pd, &d->p);+ uint32_t v = d->p.apiVersion;+ printf("GPU %d: %s (%s), Vulkan %u.%u.%u\n", index, d->p.deviceName,+ type_name(d->p.deviceType), VK_API_VERSION_MAJOR(v),+ VK_API_VERSION_MINOR(v), VK_API_VERSION_PATCH(v));+ int discrete = d->p.deviceType == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU;+ if (!discrete &&+ d->p.deviceType != VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU) {+ snprintf(d->why, sizeof(d->why), "neither discrete nor integrated");+ printf(" Janas-LLM would not take it: %s\n", d->why);+ return;+ }+ printf(" Vulkan 1.3 or later: %s\n", yes(v >= VK_API_VERSION_1_3));+ if (v < VK_API_VERSION_1_3) {+ snprintf(d->why, sizeof(d->why), "its driver offers Vulkan below 1.3");+ printf(" Janas-LLM would not take it: %s\n", d->why);+ return;+ }+ uint32_t ne = 0;+ vkEnumerateDeviceExtensionProperties(pd, NULL, &ne, NULL);+ VkExtensionProperties *ext = calloc(ne ? ne : 1, sizeof(*ext));+ if (!ext)+ exit(1);+ vkEnumerateDeviceExtensionProperties(pd, NULL, &ne, ext);+ d->host_import =+ has_ext(ext, ne, VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME);+ d->portability = has_ext(ext, ne, "VK_KHR_portability_subset");+ free(ext);++ VkPhysicalDeviceExternalMemoryHostPropertiesEXT hp = {+ .sType =+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT};+ VkPhysicalDeviceVulkan13Properties p13 = {+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_PROPERTIES,+ .pNext = d->host_import ? &hp : NULL};+ VkPhysicalDeviceVulkan12Properties p12 = {+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES,+ .pNext = &p13};+ VkPhysicalDeviceVulkan11Properties p11 = {+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES,+ .pNext = &p12};+ VkPhysicalDeviceProperties2 pp2 = {+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2, .pNext = &p11};+ vkGetPhysicalDeviceProperties2(pd, &pp2);+ VkPhysicalDeviceVulkan13Features f13 = {+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES};+ VkPhysicalDeviceVulkan12Features f12 = {+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES,+ .pNext = &f13};+ VkPhysicalDeviceFeatures2 f2 = {+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, .pNext = &f12};+ vkGetPhysicalDeviceFeatures2(pd, &f2);+ printf(" driver: %s %s\n", p12.driverName, p12.driverInfo);++ d->bda = f12.bufferDeviceAddress;+ d->idp = f13.shaderIntegerDotProduct;+ d->compute_subgroups =+ (p11.subgroupSupportedStages & VK_SHADER_STAGE_COMPUTE_BIT) != 0;+ VkSubgroupFeatureFlags ops =+ d->compute_subgroups ? p11.subgroupSupportedOperations : 0;+ d->ballot = (ops & VK_SUBGROUP_FEATURE_BALLOT_BIT) != 0;+ d->arith = (ops & VK_SUBGROUP_FEATURE_ARITHMETIC_BIT) != 0;+ d->clustered = (ops & VK_SUBGROUP_FEATURE_CLUSTERED_BIT) != 0;+ d->shuffle = (ops & VK_SUBGROUP_FEATURE_SHUFFLE_BIT) != 0;+ d->control =+ f13.subgroupSizeControl && f13.computeFullSubgroups &&+ (p13.requiredSubgroupSizeStages & VK_SHADER_STAGE_COMPUTE_BIT) != 0;+ d->sg_min = p13.minSubgroupSize;+ d->sg_max = p13.maxSubgroupSize;+ d->sg_fixed = p11.subgroupSize;+ d->import_align = d->host_import ? hp.minImportedHostPointerAlignment : 0;++ printf(" buffer device addresses: %s\n", yes(d->bda));+ printf(" integer dot product: %s\n", yes(d->idp));+ printf(" subgroup operations in compute shaders: basic %s, ballot %s, "+ "arithmetic %s, clustered %s, shuffle %s\n",+ yes(d->compute_subgroups), yes(d->ballot), yes(d->arith),+ yes(d->clustered), yes(d->shuffle));+ if (d->control)+ printf(" subgroup size: %u to %u, selectable (default %u)\n",+ d->sg_min, d->sg_max, d->sg_fixed);+ else+ printf(" subgroup size: %u%s\n", d->sg_fixed,+ d->sg_min == d->sg_max ? ", fixed"+ : ", varying, not selectable");+ if (d->host_import)+ printf(" host memory imported in place (zero-copy): yes, aligned to "+ "%llu bytes\n",+ (unsigned long long)d->import_align);+ else+ printf(" host memory imported in place (zero-copy): NO\n");+ if (d->portability)+ printf(" a portability implementation (VK_KHR_portability_subset)\n");+ VkPhysicalDeviceMemoryProperties mp;+ vkGetPhysicalDeviceMemoryProperties(pd, &mp);+ VkDeviceSize local = 0, shared = 0;+ for (uint32_t h = 0; h < mp.memoryHeapCount; h++) {+ if (!(mp.memoryHeaps[h].flags & VK_MEMORY_HEAP_DEVICE_LOCAL_BIT))+ continue;+ local += mp.memoryHeaps[h].size;+ for (uint32_t t = 0; t < mp.memoryTypeCount; t++)+ if (mp.memoryTypes[t].heapIndex == h &&+ (mp.memoryTypes[t].propertyFlags &+ VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT)) {+ shared += mp.memoryHeaps[h].size;+ break;+ }+ }+ printf(" device-local memory: %.1f GB, of which the CPU can map %.1f GB\n",+ (double)local / 1e9, (double)shared / 1e9);+ uint32_t nq = 0;+ vkGetPhysicalDeviceQueueFamilyProperties(pd, &nq, NULL);+ VkQueueFamilyProperties qf[64];+ if (nq > 64)+ nq = 64;+ vkGetPhysicalDeviceQueueFamilyProperties(pd, &nq, qf);+ d->family = UINT32_MAX;+ for (uint32_t f = 0; f < nq && d->family == UINT32_MAX; f++)+ if (qf[f].queueFlags & VK_QUEUE_COMPUTE_BIT)+ d->family = f;++ /* the engine's decision */+ const char *se = getenv("JANAS_GPU_SG");+ uint32_t want = se ? (uint32_t)atoi(se) : 8;+ if (!d->bda || !d->idp || !d->ballot)+ snprintf(d->why, sizeof(d->why),+ "no buffer addresses, integer dot product or ballot");+ else if (!discrete && !d->host_import)+ snprintf(d->why, sizeof(d->why),+ "integrated, without VK_EXT_external_memory_host");+ else if (d->family == UINT32_MAX)+ snprintf(d->why, sizeof(d->why), "no compute queue");+ else {+ if (d->control && want >= d->sg_min && want <= d->sg_max)+ d->sg = want;+ else if (d->control || d->sg_min == d->sg_max)+ d->sg = d->sg_fixed;+ else+ snprintf(d->why, sizeof(d->why),+ "subgroup size varying and not selectable");+ if (d->sg && (d->sg < 4 || d->sg > 64 || (d->sg & (d->sg - 1))))+ snprintf(d->why, sizeof(d->why), "subgroup size %u not usable",+ d->sg);+ }+ if (d->why[0]) {+ printf(" Janas-LLM would not take it: %s\n", d->why);+ return;+ }+ d->taken = 1;+ printf(" Janas-LLM would take it: %s, subgroups of %u\n",+ discrete ? "with its own memory, the weights copied there"+ : "reading the host's memory in place",+ d->sg);+ if (!d->arith || !d->clustered || !d->shuffle)+ printf(" but the shaders that need arithmetic, clustered or shuffle "+ "subgroup operations would fail: the engine does not check "+ "them yet\n");+}++/* The device opened for the tests, and one compute pipeline per shader. */+static VkDevice dev;+static VkQueue queue;+static VkCommandPool pool;+static VkCommandBuffer cb;+static VkFence fence;++struct pipe {+ VkShaderModule mod;+ VkPipelineLayout layout;+ VkPipeline pipe;+ uint32_t push;+};++static int make_pipe(const uint32_t *code, size_t bytes, uint32_t push,+ struct pipe *p)+{+ VkShaderModuleCreateInfo mi = {+ .sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO,+ .codeSize = bytes,+ .pCode = code};+ VkPushConstantRange pr = {.stageFlags = VK_SHADER_STAGE_COMPUTE_BIT,+ .size = push};+ VkPipelineLayoutCreateInfo li = {+ .sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO,+ .pushConstantRangeCount = 1,+ .pPushConstantRanges = &pr};+ p->push = push;+ if (vkCreateShaderModule(dev, &mi, NULL, &p->mod) != VK_SUCCESS ||+ vkCreatePipelineLayout(dev, &li, NULL, &p->layout) != VK_SUCCESS)+ return -1;+ VkComputePipelineCreateInfo ci = {+ .sType = VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO,+ .stage = {.sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO,+ .stage = VK_SHADER_STAGE_COMPUTE_BIT,+ .module = p->mod,+ .pName = "main"},+ .layout = p->layout};+ return vkCreateComputePipelines(dev, VK_NULL_HANDLE, 1, &ci, NULL,+ &p->pipe) == VK_SUCCESS+ ? 0+ : -1;+}++static void drop_pipe(struct pipe *p)+{+ vkDestroyPipeline(dev, p->pipe, NULL);+ vkDestroyPipelineLayout(dev, p->layout, NULL);+ vkDestroyShaderModule(dev, p->mod, NULL);+}++/* One dispatch of groups workgroups, waited for: its seconds, or -1. */+static double run(const struct pipe *p, const void *push, uint32_t groups)+{+ VkCommandBufferBeginInfo bi = {+ .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO,+ .flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT};+ VkSubmitInfo si = {.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO,+ .commandBufferCount = 1,+ .pCommandBuffers = &cb};+ double t0 = now();+ if (vkBeginCommandBuffer(cb, &bi) != VK_SUCCESS)+ return -1;+ vkCmdBindPipeline(cb, VK_PIPELINE_BIND_POINT_COMPUTE, p->pipe);+ vkCmdPushConstants(cb, p->layout, VK_SHADER_STAGE_COMPUTE_BIT, 0, p->push,+ push);+ vkCmdDispatch(cb, groups, 1, 1);+ /* the shader's writes made visible to the host's reads */+ VkMemoryBarrier mb = {.sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER,+ .srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT,+ .dstAccessMask = VK_ACCESS_HOST_READ_BIT};+ vkCmdPipelineBarrier(cb, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT,+ VK_PIPELINE_STAGE_HOST_BIT, 0, 1, &mb, 0, NULL, 0,+ NULL);+ if (vkEndCommandBuffer(cb) != VK_SUCCESS ||+ vkResetFences(dev, 1, &fence) != VK_SUCCESS ||+ vkQueueSubmit(queue, 1, &si, fence) != VK_SUCCESS ||+ vkWaitForFences(dev, 1, &fence, VK_TRUE, UINT64_MAX) != VK_SUCCESS)+ return -1;+ return now() - t0;+}++/* The tests' memory: the host's own imported where the GPU can (the+ engine's way on an integrated GPU), else memory the CPU maps. */+static uint8_t *host;+static VkBuffer buf;+static VkDeviceMemory mem;+static VkDeviceAddress addr;++static int make_memory(const struct dev *d, size_t bytes, int import)+{+ VkPhysicalDeviceMemoryProperties mp;+ vkGetPhysicalDeviceMemoryProperties(d->pd, &mp);+ VkExternalMemoryBufferCreateInfo eb = {+ .sType = VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO,+ .handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT};+ VkBufferCreateInfo bi = {.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,+ .pNext = import ? &eb : NULL,+ .size = bytes,+ .usage =+ VK_BUFFER_USAGE_STORAGE_BUFFER_BIT |+ VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT};+ if (vkCreateBuffer(dev, &bi, NULL, &buf) != VK_SUCCESS)+ return -1;+ VkMemoryRequirements req;+ vkGetBufferMemoryRequirements(dev, buf, &req);+ uint32_t bits = req.memoryTypeBits;+ VkImportMemoryHostPointerInfoEXT ip = {+ .sType = VK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXT,+ .handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT,+ .pHostPointer = host};+ if (import) {+ VkMemoryHostPointerPropertiesEXT hp = {+ .sType = VK_STRUCTURE_TYPE_MEMORY_HOST_POINTER_PROPERTIES_EXT};+ if (get_host_pointer_props(+ dev, VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT,+ host, &hp) != VK_SUCCESS)+ return -1;+ bits &= hp.memoryTypeBits;+ }+ VkMemoryPropertyFlags need = import+ ? 0+ : VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |+ VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;+ uint32_t type = UINT32_MAX;+ for (uint32_t t = 0; t < mp.memoryTypeCount && type == UINT32_MAX; t++)+ if ((bits & (1u << t)) &&+ (mp.memoryTypes[t].propertyFlags & need) == need)+ type = t;+ if (type == UINT32_MAX)+ return -1;+ VkMemoryAllocateFlagsInfo fl = {+ .sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO,+ .pNext = import ? &ip : NULL,+ .flags = VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT};+ VkMemoryAllocateInfo ai = {.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO,+ .pNext = &fl,+ .allocationSize = import ? bytes : req.size,+ .memoryTypeIndex = type};+ if (vkAllocateMemory(dev, &ai, NULL, &mem) != VK_SUCCESS ||+ vkBindBufferMemory(dev, buf, mem, 0) != VK_SUCCESS)+ return -1;+ if (!import && vkMapMemory(dev, mem, 0, VK_WHOLE_SIZE, 0, (void **)&host) !=+ VK_SUCCESS)+ return -1;+ VkBufferDeviceAddressInfo ad = {+ .sType = VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO, .buffer = buf};+ addr = vkGetBufferDeviceAddress(dev, &ad);+ return addr ? 0 : -1;+}++static int dot4(uint32_t a, uint32_t b)+{+ int s = 0;+ for (int k = 0; k < 4; k++)+ s += (int8_t)(a >> 8 * k) * (int8_t)(b >> 8 * k);+ return s;+}++static int tests(const struct dev *d)+{+ int fails = 0, import = d->host_import;+ /* the device, as the engine creates it */+ float prio = 1.0f;+ VkDeviceQueueCreateInfo qi = {+ .sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO,+ .queueFamilyIndex = d->family,+ .queueCount = 1,+ .pQueuePriorities = &prio};+ VkPhysicalDeviceVulkan13Features f13 = {+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES,+ .subgroupSizeControl = d->control ? VK_TRUE : VK_FALSE,+ .computeFullSubgroups = d->control ? VK_TRUE : VK_FALSE,+ .shaderIntegerDotProduct = VK_TRUE};+ VkPhysicalDeviceVulkan12Features f12 = {+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES,+ .pNext = &f13,+ .bufferDeviceAddress = VK_TRUE};+ const char *ext[2];+ uint32_t n_ext = 0;+ if (import)+ ext[n_ext++] = VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME;+ if (d->portability)+ ext[n_ext++] = "VK_KHR_portability_subset";+ VkDeviceCreateInfo di = {.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO,+ .pNext = &f12,+ .queueCreateInfoCount = 1,+ .pQueueCreateInfos = &qi,+ .enabledExtensionCount = n_ext,+ .ppEnabledExtensionNames = ext};+ if (vkCreateDevice(d->pd, &di, NULL, &dev) != VK_SUCCESS) {+ printf(" cannot open the device\n");+ return 1;+ }+#define LOAD_DEVICE(f) f = (PFN_##f)vkGetDeviceProcAddr(dev, #f);+ DEVICE_FNS(LOAD_DEVICE)+ get_host_pointer_props =+ (PFN_vkGetMemoryHostPointerPropertiesEXT)vkGetDeviceProcAddr(+ dev, "vkGetMemoryHostPointerPropertiesEXT");+ if (import && !get_host_pointer_props)+ import = 0;+ vkGetDeviceQueue(dev, d->family, 0, &queue);+ VkCommandPoolCreateInfo pi = {+ .sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO,+ .flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT,+ .queueFamilyIndex = d->family};+ VkCommandBufferAllocateInfo ca = {+ .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO,+ .level = VK_COMMAND_BUFFER_LEVEL_PRIMARY,+ .commandBufferCount = 1};+ VkFenceCreateInfo fi = {.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO};+ struct pipe copy, dot, order;+ if (vkCreateCommandPool(dev, &pi, NULL, &pool) != VK_SUCCESS ||+ (ca.commandPool = pool,+ vkAllocateCommandBuffers(dev, &ca, &cb) != VK_SUCCESS) ||+ vkCreateFence(dev, &fi, NULL, &fence) != VK_SUCCESS ||+ make_pipe(vkcheck_spv_copy, sizeof(vkcheck_spv_copy), 20, ©) ||+ make_pipe(vkcheck_spv_dot, sizeof(vkcheck_spv_dot), 24, &dot) ||+ make_pipe(vkcheck_spv_order, sizeof(vkcheck_spv_order), 16, &order)) {+ printf(" cannot build the test shaders\n");+ return 1;+ }++ /* 8 MB of memory, in the host's own pages when imported */+ const uint32_t n = 1u << 20;+ size_t bytes = (size_t)2 * n * 4, align = 65536;+ if (d->import_align > align)+ align = (size_t)d->import_align;+ if (import) {+#ifdef _WIN32+ host = _aligned_malloc(bytes, align);+#else+ host = aligned_alloc(align, bytes);+#endif+ if (!host)+ return 1;+ }+ if (make_memory(d, bytes, import) != 0) {+ printf(" zero-copy: FAIL, the host's memory could not be imported "+ "(%zu bytes aligned to %zu)\n",+ bytes, align);+ return 1;+ }+ uint32_t *u = (uint32_t *)host;++ /* zero-copy: y = 3x + 1, both in that memory */+ for (uint32_t i = 0; i < n; i++) {+ u[i] = i ^ 0x9E3779B9u;+ u[n + i] = 0xDEADBEEFu;+ }+ struct {+ uint64_t x, y;+ uint32_t n;+ } __attribute__((packed)) pc = {addr, addr + (uint64_t)n * 4, n};+ uint32_t bad = 0, stale = 0;+ if (run(©, &pc, (n + 63) / 64) < 0)+ bad = n;+ else+ for (uint32_t i = 0; i < n; i++) {+ bad += u[n + i] != u[i] * 3u + 1u;+ stale += u[n + i] == 0xDEADBEEFu;+ }+ if (!import)+ printf(" zero-copy: not available; memory the CPU maps instead%s\n",+ bad ? " - and even that FAILED" : ", which works");+ else if (!bad)+ printf(" zero-copy: ok, the GPU read and wrote this program's own "+ "memory (%u values)\n",+ n);+ else+ printf(" zero-copy: FAIL, %u of %u values wrong (%u never written)\n",+ bad, n, stale);+ fails += bad != 0;++ /* the integer dot product: correct, then how fast */+ struct {+ uint64_t a, y;+ uint32_t n, reps;+ } __attribute__((packed)) dc = {addr, addr + (uint64_t)n * 4, n, 64};+ uint32_t seed = 1;+ for (uint32_t i = 0; i < n; i++) {+ seed = seed * 1103515245u + 12345u;+ u[i] = seed ^ (seed >> 15);+ }+ bad = 0;+ if (run(&dot, &dc, (n + 63) / 64) < 0)+ bad = 1;+ for (uint32_t i = 0; i < n && !bad; i += 16) {+ uint32_t x = u[i], w0 = u[(i * 7u + 3u) % n];+ uint32_t w1 = w0 ^ 0x5A5A5A5Au, w2 = w0 + 0x01020304u, w3 = ~w0;+ int acc = 0;+ for (uint32_t r = 0; r < dc.reps; r++) {+ acc += dot4(x, w0) + dot4(x, w1) + dot4(x, w2) + dot4(x, w3);+ x += 0x9E3779B9u;+ }+ bad += (int32_t)u[n + i] != acc;+ }+ dc.reps = 4096;+ double t = bad ? -1 : run(&dot, &dc, (n + 63) / 64);+ if (bad || t <= 0) {+ printf(" integer dot product: FAIL, results differ from the CPU's\n");+ fails++;+ } else+ printf(" integer dot product: ok, as the CPU's; about %.0f billion "+ "int8 multiply-adds a second\n",+ (double)n * dc.reps * 16 / t / 1e9);++ /* float: fma, precise, order, subnormals */+ float *f = (float *)host;+ float a = 1.0f + ldexpf(1.0f, -12), c = -(1.0f + ldexpf(1.0f, -11));+ f[0] = a;+ f[1] = a;+ f[2] = c;+ f[3] = 1e8f;+ f[4] = -1e8f;+ f[5] = 1.0f;+ f[6] = ldexpf(1.0f, -130);+ f[7] = 1.0f;+ struct {+ uint64_t x, y;+ } __attribute__((packed)) oc = {addr, addr + 64};+ for (int i = 0; i < 5; i++)+ f[16 + i] = -999.0f;+ volatile float m = a * a; /* rounded once, not fused with what follows */+ float fused = fmaf(a, a, c), unfused = m + c;+ if (run(&order, &oc, 1) < 0) {+ printf(" float: FAIL, the shader did not run\n");+ fails++;+ } else {+ int ok_fma = f[16] == fused, ok_precise = f[17] == unfused,+ ok_order = f[18] == 1.0f;+ printf(" float: fma() rounded once %s, a precise a * b + c rounded "+ "twice %s, a precise sum in the order written %s\n",+ ok_fma ? "ok" : "FAIL", ok_precise ? "ok" : "FAIL",+ ok_order ? "ok" : "FAIL");+ printf(" float, for information: fma() not marked precise %s; "+ "subnormals %s\n",+ f[19] == fused ? "fused" : "not fused",+ f[20] != 0.0f ? "kept" : "flushed to zero");+ fails += !ok_fma + !ok_precise + !ok_order;+ }+ drop_pipe(©);+ drop_pipe(&dot);+ drop_pipe(&order);+ vkDestroyBuffer(dev, buf, NULL);+ vkFreeMemory(dev, mem, NULL);+ vkDestroyFence(dev, fence, NULL);+ vkDestroyCommandPool(dev, pool, NULL);+ vkDestroyDevice(dev, NULL);+ if (import) {+#ifdef _WIN32+ _aligned_free(host);+#else+ free(host);+#endif+ }+ return fails;+}++int main(int argc, char **argv)+{+ static const char *const names[] = {+#if defined(_WIN32)+ "vulkan-1.dll",+#elif defined(__APPLE__)+ "libvulkan.1.dylib",+ "/usr/local/lib/libvulkan.1.dylib",+ "/opt/homebrew/lib/libvulkan.1.dylib",+ "libMoltenVK.dylib",+ "/usr/local/lib/libMoltenVK.dylib",+ "/opt/homebrew/lib/libMoltenVK.dylib",+#else+ "libvulkan.so.1", "libvulkan.so",+#endif+ NULL};+ const char *lib = NULL;+ if (argc > 1) {+ if (load(argv[1]))+ lib = argv[1];+ } else+ for (int i = 0; names[i] && !lib; i++)+ if (load(names[i]))+ lib = names[i];+ if (!lib) {+ printf("vkcheck: no Vulkan library (%s)\n",+ argc > 1 ? argv[1] : "the loader, or on macOS MoltenVK");+ return 1;+ }+ PFN_vkCreateInstance create =+ (PFN_vkCreateInstance)gipa(NULL, "vkCreateInstance");+ PFN_vkEnumerateInstanceExtensionProperties inst_ext =+ (PFN_vkEnumerateInstanceExtensionProperties)gipa(+ NULL, "vkEnumerateInstanceExtensionProperties");+ PFN_vkEnumerateInstanceVersion inst_ver =+ (PFN_vkEnumerateInstanceVersion)gipa(NULL,+ "vkEnumerateInstanceVersion");+ uint32_t iv = VK_API_VERSION_1_0;+ if (inst_ver)+ inst_ver(&iv);+ /* MoltenVK through the loader is listed only when asked for */+ uint32_t ne = 0;+ if (inst_ext)+ inst_ext(NULL, &ne, NULL);+ VkExtensionProperties *ie = calloc(ne ? ne : 1, sizeof(*ie));+ if (!ie)+ return 1;+ if (inst_ext)+ inst_ext(NULL, &ne, ie);+ int port = has_ext(ie, ne, "VK_KHR_portability_enumeration");+ free(ie);+ const char *iext[] = {"VK_KHR_portability_enumeration"};+ VkApplicationInfo app = {.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO,+ .pApplicationName = "vkcheck",+ .apiVersion = VK_API_VERSION_1_3};+ VkInstanceCreateInfo ici = {+ .sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,+ .flags = port ? VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR : 0,+ .pApplicationInfo = &app,+ .enabledExtensionCount = port ? 1 : 0,+ .ppEnabledExtensionNames = iext};+ VkInstance inst;+ VkResult r;+ if (!create || (r = create(&ici, NULL, &inst)) != VK_SUCCESS) {+ printf("vkcheck: %s: no Vulkan instance\n", lib);+ return 1;+ }+ printf("vkcheck: %s, instance Vulkan %u.%u%s\n", lib,+ VK_API_VERSION_MAJOR(iv), VK_API_VERSION_MINOR(iv),+ port ? ", portability implementations listed" : "");+#define LOAD_INSTANCE(f) f = (PFN_##f)gipa(inst, #f);+ INSTANCE_FNS(LOAD_INSTANCE)+ uint32_t np = 0;+ vkEnumeratePhysicalDevices(inst, &np, NULL);+ VkPhysicalDevice pds[16];+ if (np > 16)+ np = 16;+ vkEnumeratePhysicalDevices(inst, &np, pds);+ if (!np) {+ printf("vkcheck: Vulkan sees no GPU\n");+ return 1;+ }+ struct dev d[16];+ for (uint32_t i = 0; i < np; i++)+ examine(pds[i], (int)i, &d[i]);+ /* the engine's choice: a discrete GPU first, then an integrated one;+ JANAS_GPU_DEVICE=discrete|integrated restricts */+ const char *want = getenv("JANAS_GPU_DEVICE");+ int pick = -1;+ for (int pass = 0; pass < 2 && pick < 0; pass++) {+ VkPhysicalDeviceType ty = pass == 0+ ? VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU+ : VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU;+ if (want && strcmp(want, pass == 0 ? "discrete" : "integrated"))+ continue;+ for (uint32_t i = 0; i < np && pick < 0; i++)+ if (d[i].taken && d[i].p.deviceType == ty)+ pick = (int)i;+ }+ int rc = 1;+ if (pick < 0)+ printf("\nJanas-LLM would run on the CPU alone: no GPU it takes\n");+ else {+ printf("\nJanas-LLM would use GPU %d; tests on it:\n", pick);+ rc = tests(&d[pick]) ? 1 : 0;+ printf("%s\n", rc ? "some test FAILED: tell the project, with this "+ "output"+ : "every test passed");+ }+ vkDestroyInstance(inst, NULL);+ return rc;+}+#endifdiff --git a/tools/vkcheck/copy.comp b/tools/vkcheck/copy.compnew file mode 100644index 0000000..774fc33--- /dev/null+++ b/tools/vkcheck/copy.comp@@ -0,0 +1,18 @@+/* SPDX-License-Identifier: GPL-3.0-or-later+ Copyright (C) 2026 Maurizio Cammalleri */+#version 450+// vkcheck's zero-copy test: reads x and writes y, both in the host's own+// memory imported by the GPU (VK_EXT_external_memory_host): y = 3x + 1.+#extension GL_EXT_buffer_reference : require+#extension GL_EXT_buffer_reference_uvec2 : require++layout(local_size_x = 64) in;+layout(buffer_reference, std430, buffer_reference_align = 4) buffer U { uint v[]; };+layout(push_constant) uniform P { uvec2 x, y; uint n; } p;++void main()+{+ uint i = gl_GlobalInvocationID.x;+ if (i < p.n)+ U(p.y).v[i] = U(p.x).v[i] * 3u + 1u;+}diff --git a/tools/vkcheck/dot.comp b/tools/vkcheck/dot.compnew file mode 100644index 0000000..a864325--- /dev/null+++ b/tools/vkcheck/dot.comp@@ -0,0 +1,35 @@+/* SPDX-License-Identifier: GPL-3.0-or-later+ Copyright (C) 2026 Maurizio Cammalleri */+#version 450+// vkcheck's integer dot product test: per invocation, reps rounds of four+// products of four signed bytes into four sums, the shared operand moved by+// an addition each round; the CPU computes the same sums. Correctness, and+// with many invocations a rough rate of the instruction Janas-LLM's+// quantized products are made of (a driver that emulates it is slower by+// several times).+#extension GL_EXT_integer_dot_product : require+#extension GL_EXT_buffer_reference : require+#extension GL_EXT_buffer_reference_uvec2 : require++layout(local_size_x = 64) in;+layout(buffer_reference, std430, buffer_reference_align = 4) buffer U { uint v[]; };+layout(push_constant) uniform P { uvec2 a, y; uint n, reps; } p;++void main()+{+ uint i = gl_GlobalInvocationID.x;+ if (i >= p.n)+ return;+ U A = U(p.a);+ uint x = A.v[i], w0 = A.v[(i * 7u + 3u) % p.n];+ uint w1 = w0 ^ 0x5A5A5A5Au, w2 = w0 + 0x01020304u, w3 = ~w0;+ int a0 = 0, a1 = 0, a2 = 0, a3 = 0;+ for (uint r = 0u; r < p.reps; r++) {+ a0 += dotPacked4x8EXT(int(x), int(w0));+ a1 += dotPacked4x8EXT(int(x), int(w1));+ a2 += dotPacked4x8EXT(int(x), int(w2));+ a3 += dotPacked4x8EXT(int(x), int(w3));+ x += 0x9E3779B9u;+ }+ U(p.y).v[i] = uint(a0 + a1 + a2 + a3);+}diff --git a/tools/vkcheck/gen_spv.sh b/tools/vkcheck/gen_spv.shnew file mode 100755index 0000000..1681958--- /dev/null+++ b/tools/vkcheck/gen_spv.sh@@ -0,0 +1,15 @@+#!/bin/sh+# Regenerates spv.h, the SPIR-V of vkcheck's shaders (copy, dot, order) as C+# arrays, so that tools/vkcheck.c builds with a C compiler alone. Needs+# glslangValidator (glslang-tools on Debian and Ubuntu, glslang elsewhere).+cd "$(dirname "$0")" || exit 1+{+ echo "/* Generated by tools/vkcheck/gen_spv.sh from copy.comp, dot.comp and"+ echo " order.comp - do not edit. */"+ for s in copy dot order; do+ glslangValidator -V --target-env vulkan1.3 --vn "vkcheck_spv_$s" \+ "$s.comp" -o "$s.spv.tmp" >/dev/null || exit 1+ grep -v '#pragma once' "$s.spv.tmp"+ rm -f "$s.spv.tmp"+ done+} > spv.h.tmp && mv spv.h.tmp spv.hdiff --git a/tools/vkcheck/order.comp b/tools/vkcheck/order.compnew file mode 100644index 0000000..ffafe0c--- /dev/null+++ b/tools/vkcheck/order.comp@@ -0,0 +1,28 @@+/* SPDX-License-Identifier: GPL-3.0-or-later+ Copyright (C) 2026 Maurizio Cammalleri */+#version 450+// vkcheck's float test: what Janas-LLM's shaders rely on to give the CPU's+// results to the bit. fma() one rounding, a * b + c marked precise two, a+// precise sum in the order written; and whether a subnormal survives.+#extension GL_EXT_buffer_reference : require+#extension GL_EXT_buffer_reference_uvec2 : require++layout(local_size_x = 1) in;+layout(buffer_reference, std430, buffer_reference_align = 4) buffer F { float v[]; };+layout(push_constant) uniform P { uvec2 x, y; } p;++void main()+{+ F X = F(p.x), Y = F(p.y);+ float a = X.v[0], b = X.v[1], c = X.v[2];+ precise float f = fma(a, b, c);+ precise float m = a * b;+ precise float u = m + c;+ float d = X.v[3], e = X.v[4], g = X.v[5];+ precise float s = (d + e) + g;+ Y.v[0] = f;+ Y.v[1] = u;+ Y.v[2] = s;+ Y.v[3] = fma(a, b, c);+ Y.v[4] = X.v[6] * X.v[7];+}diff --git a/tools/vkcheck/spv.h b/tools/vkcheck/spv.hnew file mode 100644index 0000000..65af98e--- /dev/null+++ b/tools/vkcheck/spv.h@@ -0,0 +1,246 @@+/* Generated by tools/vkcheck/gen_spv.sh from copy.comp, dot.comp and+ order.comp - do not edit. */+ // 1115.2.0+const uint32_t vkcheck_spv_copy[] = {+ 0x07230203,0x00010600,0x0008000b,0x00000036,0x00000000,0x00020011,0x00000001,0x00020011,+ 0x000014e3,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,+ 0x000014e4,0x00000001,0x0007000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000b,+ 0x00000014,0x00060010,0x00000004,0x00000011,0x00000040,0x00000001,0x00000001,0x00030003,+ 0x00000002,0x000001c2,0x00070004,0x455f4c47,0x625f5458,0x65666675,0x65725f72,0x65726566,+ 0x0065636e,0x00090004,0x455f4c47,0x625f5458,0x65666675,0x65725f72,0x65726566,0x5f65636e,+ 0x63657675,0x00000032,0x00040005,0x00000004,0x6e69616d,0x00000000,0x00030005,0x00000008,+ 0x00000069,0x00080005,0x0000000b,0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,+ 0x00000044,0x00030005,0x00000012,0x00000050,0x00040006,0x00000012,0x00000000,0x00000078,+ 0x00040006,0x00000012,0x00000001,0x00000079,0x00040006,0x00000012,0x00000002,0x0000006e,+ 0x00030005,0x00000014,0x00000070,0x00030005,0x00000024,0x00000055,0x00040006,0x00000024,+ 0x00000000,0x00000076,0x00040047,0x0000000b,0x0000000b,0x0000001c,0x00030047,0x00000012,+ 0x00000002,0x00050048,0x00000012,0x00000000,0x00000023,0x00000000,0x00050048,0x00000012,+ 0x00000001,0x00000023,0x00000008,0x00050048,0x00000012,0x00000002,0x00000023,0x00000010,+ 0x00040047,0x00000023,0x00000006,0x00000004,0x00030047,0x00000024,0x00000002,0x00050048,+ 0x00000024,0x00000000,0x00000023,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,+ 0x00000002,0x00040015,0x00000006,0x00000020,0x00000000,0x00040020,0x00000007,0x00000007,+ 0x00000006,0x00040017,0x00000009,0x00000006,0x00000003,0x00040020,0x0000000a,0x00000001,+ 0x00000009,0x0004003b,0x0000000a,0x0000000b,0x00000001,0x0004002b,0x00000006,0x0000000c,+ 0x00000000,0x00040020,0x0000000d,0x00000001,0x00000006,0x00040017,0x00000011,0x00000006,+ 0x00000002,0x0005001e,0x00000012,0x00000011,0x00000011,0x00000006,0x00040020,0x00000013,+ 0x00000009,0x00000012,0x0004003b,0x00000013,0x00000014,0x00000009,0x00040015,0x00000015,+ 0x00000020,0x00000001,0x0004002b,0x00000015,0x00000016,0x00000002,0x00040020,0x00000017,+ 0x00000009,0x00000006,0x00020014,0x0000001a,0x0004002b,0x00000015,0x0000001e,0x00000001,+ 0x00040020,0x0000001f,0x00000009,0x00000011,0x00030027,0x00000022,0x000014e5,0x0003001d,+ 0x00000023,0x00000006,0x0003001e,0x00000024,0x00000023,0x00040020,0x00000022,0x000014e5,+ 0x00000024,0x0004002b,0x00000015,0x00000026,0x00000000,0x00040020,0x0000002c,0x000014e5,+ 0x00000006,0x0004002b,0x00000006,0x0000002f,0x00000003,0x0004002b,0x00000006,0x00000031,+ 0x00000001,0x0004002b,0x00000006,0x00000034,0x00000040,0x0006002c,0x00000009,0x00000035,+ 0x00000034,0x00000031,0x00000031,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,+ 0x000200f8,0x00000005,0x0004003b,0x00000007,0x00000008,0x00000007,0x00050041,0x0000000d,+ 0x0000000e,0x0000000b,0x0000000c,0x0004003d,0x00000006,0x0000000f,0x0000000e,0x0003003e,+ 0x00000008,0x0000000f,0x0004003d,0x00000006,0x00000010,0x00000008,0x00050041,0x00000017,+ 0x00000018,0x00000014,0x00000016,0x0004003d,0x00000006,0x00000019,0x00000018,0x000500b0,+ 0x0000001a,0x0000001b,0x00000010,0x00000019,0x000300f7,0x0000001d,0x00000000,0x000400fa,+ 0x0000001b,0x0000001c,0x0000001d,0x000200f8,0x0000001c,0x00050041,0x0000001f,0x00000020,+ 0x00000014,0x0000001e,0x0004003d,0x00000011,0x00000021,0x00000020,0x0004007c,0x00000022,+ 0x00000025,0x00000021,0x0004003d,0x00000006,0x00000027,0x00000008,0x00050041,0x0000001f,+ 0x00000028,0x00000014,0x00000026,0x0004003d,0x00000011,0x00000029,0x00000028,0x0004007c,+ 0x00000022,0x0000002a,0x00000029,0x0004003d,0x00000006,0x0000002b,0x00000008,0x00060041,+ 0x0000002c,0x0000002d,0x0000002a,0x00000026,0x0000002b,0x0006003d,0x00000006,0x0000002e,+ 0x0000002d,0x00000002,0x00000004,0x00050084,0x00000006,0x00000030,0x0000002e,0x0000002f,+ 0x00050080,0x00000006,0x00000032,0x00000030,0x00000031,0x00060041,0x0000002c,0x00000033,+ 0x00000025,0x00000026,0x00000027,0x0005003e,0x00000033,0x00000032,0x00000002,0x00000004,+ 0x000200f9,0x0000001d,0x000200f8,0x0000001d,0x000100fd,0x00010038+};+ // 1115.2.0+const uint32_t vkcheck_spv_dot[] = {+ 0x07230203,0x00010600,0x0008000b,0x00000088,0x00000000,0x00020011,0x00000001,0x00020011,+ 0x000014e3,0x00020011,0x00001782,0x00020011,0x00001783,0x0008000a,0x5f565053,0x5f52484b,+ 0x65746e69,0x5f726567,0x5f746f64,0x646f7270,0x00746375,0x0006000b,0x00000001,0x4c534c47,+ 0x6474732e,0x3035342e,0x00000000,0x0003000e,0x000014e4,0x00000001,0x0007000f,0x00000005,+ 0x00000004,0x6e69616d,0x00000000,0x0000000b,0x00000014,0x00060010,0x00000004,0x00000011,+ 0x00000040,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,0x00070004,0x455f4c47,+ 0x625f5458,0x65666675,0x65725f72,0x65726566,0x0065636e,0x00090004,0x455f4c47,0x625f5458,+ 0x65666675,0x65725f72,0x65726566,0x5f65636e,0x63657675,0x00000032,0x00080004,0x455f4c47,+ 0x695f5458,0x6765746e,0x645f7265,0x705f746f,0x75646f72,0x00007463,0x00040005,0x00000004,+ 0x6e69616d,0x00000000,0x00030005,0x00000008,0x00000069,0x00080005,0x0000000b,0x475f6c67,+ 0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00030005,0x00000012,0x00000050,+ 0x00040006,0x00000012,0x00000000,0x00000061,0x00040006,0x00000012,0x00000001,0x00000079,+ 0x00040006,0x00000012,0x00000002,0x0000006e,0x00050006,0x00000012,0x00000003,0x73706572,+ 0x00000000,0x00030005,0x00000014,0x00000070,0x00030005,0x00000021,0x00000055,0x00040006,+ 0x00000021,0x00000000,0x00000076,0x00030005,0x00000023,0x00000041,0x00030005,0x00000029,+ 0x00000078,0x00030005,0x0000002f,0x00003077,0x00030005,0x0000003b,0x00003177,0x00030005,+ 0x0000003f,0x00003277,0x00030005,0x00000043,0x00003377,0x00030005,0x00000047,0x00003061,+ 0x00030005,0x00000048,0x00003161,0x00030005,0x00000049,0x00003261,0x00030005,0x0000004a,+ 0x00003361,0x00030005,0x0000004b,0x00000072,0x00040047,0x0000000b,0x0000000b,0x0000001c,+ 0x00030047,0x00000012,0x00000002,0x00050048,0x00000012,0x00000000,0x00000023,0x00000000,+ 0x00050048,0x00000012,0x00000001,0x00000023,0x00000008,0x00050048,0x00000012,0x00000002,+ 0x00000023,0x00000010,0x00050048,0x00000012,0x00000003,0x00000023,0x00000014,0x00040047,+ 0x00000020,0x00000006,0x00000004,0x00030047,0x00000021,0x00000002,0x00050048,0x00000021,+ 0x00000000,0x00000023,0x00000000,0x00030047,0x00000023,0x000014ec,0x00020013,0x00000002,+ 0x00030021,0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,0x00000000,0x00040020,+ 0x00000007,0x00000007,0x00000006,0x00040017,0x00000009,0x00000006,0x00000003,0x00040020,+ 0x0000000a,0x00000001,0x00000009,0x0004003b,0x0000000a,0x0000000b,0x00000001,0x0004002b,+ 0x00000006,0x0000000c,0x00000000,0x00040020,0x0000000d,0x00000001,0x00000006,0x00040017,+ 0x00000011,0x00000006,0x00000002,0x0006001e,0x00000012,0x00000011,0x00000011,0x00000006,+ 0x00000006,0x00040020,0x00000013,0x00000009,0x00000012,0x0004003b,0x00000013,0x00000014,+ 0x00000009,0x00040015,0x00000015,0x00000020,0x00000001,0x0004002b,0x00000015,0x00000016,+ 0x00000002,0x00040020,0x00000017,0x00000009,0x00000006,0x00020014,0x0000001a,0x00030027,+ 0x0000001f,0x000014e5,0x0003001d,0x00000020,0x00000006,0x0003001e,0x00000021,0x00000020,+ 0x00040020,0x0000001f,0x000014e5,0x00000021,0x00040020,0x00000022,0x00000007,0x0000001f,+ 0x0004002b,0x00000015,0x00000024,0x00000000,0x00040020,0x00000025,0x00000009,0x00000011,+ 0x00040020,0x0000002c,0x000014e5,0x00000006,0x0004002b,0x00000006,0x00000032,0x00000007,+ 0x0004002b,0x00000006,0x00000034,0x00000003,0x0004002b,0x00000006,0x0000003d,0x5a5a5a5a,+ 0x0004002b,0x00000006,0x00000041,0x01020304,0x00040020,0x00000046,0x00000007,0x00000015,+ 0x0004002b,0x00000015,0x00000052,0x00000003,0x0004002b,0x00000006,0x00000072,0x9e3779b9,+ 0x0004002b,0x00000015,0x00000076,0x00000001,0x0004002b,0x00000006,0x00000085,0x00000040,+ 0x0004002b,0x00000006,0x00000086,0x00000001,0x0006002c,0x00000009,0x00000087,0x00000085,+ 0x00000086,0x00000086,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,+ 0x00000005,0x0004003b,0x00000007,0x00000008,0x00000007,0x0004003b,0x00000022,0x00000023,+ 0x00000007,0x0004003b,0x00000007,0x00000029,0x00000007,0x0004003b,0x00000007,0x0000002f,+ 0x00000007,0x0004003b,0x00000007,0x0000003b,0x00000007,0x0004003b,0x00000007,0x0000003f,+ 0x00000007,0x0004003b,0x00000007,0x00000043,0x00000007,0x0004003b,0x00000046,0x00000047,+ 0x00000007,0x0004003b,0x00000046,0x00000048,0x00000007,0x0004003b,0x00000046,0x00000049,+ 0x00000007,0x0004003b,0x00000046,0x0000004a,0x00000007,0x0004003b,0x00000007,0x0000004b,+ 0x00000007,0x00050041,0x0000000d,0x0000000e,0x0000000b,0x0000000c,0x0004003d,0x00000006,+ 0x0000000f,0x0000000e,0x0003003e,0x00000008,0x0000000f,0x0004003d,0x00000006,0x00000010,+ 0x00000008,0x00050041,0x00000017,0x00000018,0x00000014,0x00000016,0x0004003d,0x00000006,+ 0x00000019,0x00000018,0x000500ae,0x0000001a,0x0000001b,0x00000010,0x00000019,0x000300f7,+ 0x0000001d,0x00000000,0x000400fa,0x0000001b,0x0000001c,0x0000001d,0x000200f8,0x0000001c,+ 0x000100fd,0x000200f8,0x0000001d,0x00050041,0x00000025,0x00000026,0x00000014,0x00000024,+ 0x0004003d,0x00000011,0x00000027,0x00000026,0x0004007c,0x0000001f,0x00000028,0x00000027,+ 0x0003003e,0x00000023,0x00000028,0x0004003d,0x0000001f,0x0000002a,0x00000023,0x0004003d,+ 0x00000006,0x0000002b,0x00000008,0x00060041,0x0000002c,0x0000002d,0x0000002a,0x00000024,+ 0x0000002b,0x0006003d,0x00000006,0x0000002e,0x0000002d,0x00000002,0x00000004,0x0003003e,+ 0x00000029,0x0000002e,0x0004003d,0x0000001f,0x00000030,0x00000023,0x0004003d,0x00000006,+ 0x00000031,0x00000008,0x00050084,0x00000006,0x00000033,0x00000031,0x00000032,0x00050080,+ 0x00000006,0x00000035,0x00000033,0x00000034,0x00050041,0x00000017,0x00000036,0x00000014,+ 0x00000016,0x0004003d,0x00000006,0x00000037,0x00000036,0x00050089,0x00000006,0x00000038,+ 0x00000035,0x00000037,0x00060041,0x0000002c,0x00000039,0x00000030,0x00000024,0x00000038,+ 0x0006003d,0x00000006,0x0000003a,0x00000039,0x00000002,0x00000004,0x0003003e,0x0000002f,+ 0x0000003a,0x0004003d,0x00000006,0x0000003c,0x0000002f,0x000500c6,0x00000006,0x0000003e,+ 0x0000003c,0x0000003d,0x0003003e,0x0000003b,0x0000003e,0x0004003d,0x00000006,0x00000040,+ 0x0000002f,0x00050080,0x00000006,0x00000042,0x00000040,0x00000041,0x0003003e,0x0000003f,+ 0x00000042,0x0004003d,0x00000006,0x00000044,0x0000002f,0x000400c8,0x00000006,0x00000045,+ 0x00000044,0x0003003e,0x00000043,0x00000045,0x0003003e,0x00000047,0x00000024,0x0003003e,+ 0x00000048,0x00000024,0x0003003e,0x00000049,0x00000024,0x0003003e,0x0000004a,0x00000024,+ 0x0003003e,0x0000004b,0x0000000c,0x000200f9,0x0000004c,0x000200f8,0x0000004c,0x000400f6,+ 0x0000004e,0x0000004f,0x00000000,0x000200f9,0x00000050,0x000200f8,0x00000050,0x0004003d,+ 0x00000006,0x00000051,0x0000004b,0x00050041,0x00000017,0x00000053,0x00000014,0x00000052,+ 0x0004003d,0x00000006,0x00000054,0x00000053,0x000500b0,0x0000001a,0x00000055,0x00000051,+ 0x00000054,0x000400fa,0x00000055,0x0000004d,0x0000004e,0x000200f8,0x0000004d,0x0004003d,+ 0x00000006,0x00000056,0x00000029,0x0004007c,0x00000015,0x00000057,0x00000056,0x0004003d,+ 0x00000006,0x00000058,0x0000002f,0x0004007c,0x00000015,0x00000059,0x00000058,0x00061162,+ 0x00000015,0x0000005a,0x00000057,0x00000059,0x00000000,0x0004003d,0x00000015,0x0000005b,+ 0x00000047,0x00050080,0x00000015,0x0000005c,0x0000005b,0x0000005a,0x0003003e,0x00000047,+ 0x0000005c,0x0004003d,0x00000006,0x0000005d,0x00000029,0x0004007c,0x00000015,0x0000005e,+ 0x0000005d,0x0004003d,0x00000006,0x0000005f,0x0000003b,0x0004007c,0x00000015,0x00000060,+ 0x0000005f,0x00061162,0x00000015,0x00000061,0x0000005e,0x00000060,0x00000000,0x0004003d,+ 0x00000015,0x00000062,0x00000048,0x00050080,0x00000015,0x00000063,0x00000062,0x00000061,+ 0x0003003e,0x00000048,0x00000063,0x0004003d,0x00000006,0x00000064,0x00000029,0x0004007c,+ 0x00000015,0x00000065,0x00000064,0x0004003d,0x00000006,0x00000066,0x0000003f,0x0004007c,+ 0x00000015,0x00000067,0x00000066,0x00061162,0x00000015,0x00000068,0x00000065,0x00000067,+ 0x00000000,0x0004003d,0x00000015,0x00000069,0x00000049,0x00050080,0x00000015,0x0000006a,+ 0x00000069,0x00000068,0x0003003e,0x00000049,0x0000006a,0x0004003d,0x00000006,0x0000006b,+ 0x00000029,0x0004007c,0x00000015,0x0000006c,0x0000006b,0x0004003d,0x00000006,0x0000006d,+ 0x00000043,0x0004007c,0x00000015,0x0000006e,0x0000006d,0x00061162,0x00000015,0x0000006f,+ 0x0000006c,0x0000006e,0x00000000,0x0004003d,0x00000015,0x00000070,0x0000004a,0x00050080,+ 0x00000015,0x00000071,0x00000070,0x0000006f,0x0003003e,0x0000004a,0x00000071,0x0004003d,+ 0x00000006,0x00000073,0x00000029,0x00050080,0x00000006,0x00000074,0x00000073,0x00000072,+ 0x0003003e,0x00000029,0x00000074,0x000200f9,0x0000004f,0x000200f8,0x0000004f,0x0004003d,+ 0x00000006,0x00000075,0x0000004b,0x00050080,0x00000006,0x00000077,0x00000075,0x00000076,+ 0x0003003e,0x0000004b,0x00000077,0x000200f9,0x0000004c,0x000200f8,0x0000004e,0x00050041,+ 0x00000025,0x00000078,0x00000014,0x00000076,0x0004003d,0x00000011,0x00000079,0x00000078,+ 0x0004007c,0x0000001f,0x0000007a,0x00000079,0x0004003d,0x00000006,0x0000007b,0x00000008,+ 0x0004003d,0x00000015,0x0000007c,0x00000047,0x0004003d,0x00000015,0x0000007d,0x00000048,+ 0x00050080,0x00000015,0x0000007e,0x0000007c,0x0000007d,0x0004003d,0x00000015,0x0000007f,+ 0x00000049,0x00050080,0x00000015,0x00000080,0x0000007e,0x0000007f,0x0004003d,0x00000015,+ 0x00000081,0x0000004a,0x00050080,0x00000015,0x00000082,0x00000080,0x00000081,0x0004007c,+ 0x00000006,0x00000083,0x00000082,0x00060041,0x0000002c,0x00000084,0x0000007a,0x00000024,+ 0x0000007b,0x0005003e,0x00000084,0x00000083,0x00000002,0x00000004,0x000100fd,0x00010038+};+ // 1115.2.0+const uint32_t vkcheck_spv_order[] = {+ 0x07230203,0x00010600,0x0008000b,0x0000006a,0x00000000,0x00020011,0x00000001,0x00020011,+ 0x000014e3,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,+ 0x000014e4,0x00000001,0x0006000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x00000010,+ 0x00060010,0x00000004,0x00000011,0x00000001,0x00000001,0x00000001,0x00030003,0x00000002,+ 0x000001c2,0x00070004,0x455f4c47,0x625f5458,0x65666675,0x65725f72,0x65726566,0x0065636e,+ 0x00090004,0x455f4c47,0x625f5458,0x65666675,0x65725f72,0x65726566,0x5f65636e,0x63657675,+ 0x00000032,0x00040005,0x00000004,0x6e69616d,0x00000000,0x00030005,0x00000009,0x00000046,+ 0x00040006,0x00000009,0x00000000,0x00000076,0x00030005,0x0000000b,0x00000058,0x00030005,+ 0x0000000e,0x00000050,0x00040006,0x0000000e,0x00000000,0x00000078,0x00040006,0x0000000e,+ 0x00000001,0x00000079,0x00030005,0x00000010,0x00000070,0x00030005,0x00000017,0x00000059,+ 0x00030005,0x0000001d,0x00000061,0x00030005,0x00000022,0x00000062,0x00030005,0x00000026,+ 0x00000063,0x00030005,0x0000002b,0x00000066,0x00030005,0x00000030,0x0000006d,0x00030005,+ 0x00000034,0x00000075,0x00030005,0x00000038,0x00000064,0x00030005,0x0000003d,0x00000065,+ 0x00030005,0x00000042,0x00000067,0x00030005,0x00000047,0x00000073,0x00040047,0x00000008,+ 0x00000006,0x00000004,0x00030047,0x00000009,0x00000002,0x00050048,0x00000009,0x00000000,+ 0x00000023,0x00000000,0x00030047,0x0000000b,0x000014ec,0x00030047,0x0000000e,0x00000002,+ 0x00050048,0x0000000e,0x00000000,0x00000023,0x00000000,0x00050048,0x0000000e,0x00000001,+ 0x00000023,0x00000008,0x00030047,0x00000017,0x000014ec,0x00030047,0x00000033,0x0000002a,+ 0x00030047,0x00000037,0x0000002a,0x00030047,0x0000004a,0x0000002a,0x00030047,0x0000004c,+ 0x0000002a,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030027,0x00000006,+ 0x000014e5,0x00030016,0x00000007,0x00000020,0x0003001d,0x00000008,0x00000007,0x0003001e,+ 0x00000009,0x00000008,0x00040020,0x00000006,0x000014e5,0x00000009,0x00040020,0x0000000a,+ 0x00000007,0x00000006,0x00040015,0x0000000c,0x00000020,0x00000000,0x00040017,0x0000000d,+ 0x0000000c,0x00000002,0x0004001e,0x0000000e,0x0000000d,0x0000000d,0x00040020,0x0000000f,+ 0x00000009,0x0000000e,0x0004003b,0x0000000f,0x00000010,0x00000009,0x00040015,0x00000011,+ 0x00000020,0x00000001,0x0004002b,0x00000011,0x00000012,0x00000000,0x00040020,0x00000013,+ 0x00000009,0x0000000d,0x0004002b,0x00000011,0x00000018,0x00000001,0x00040020,0x0000001c,+ 0x00000007,0x00000007,0x00040020,0x0000001f,0x000014e5,0x00000007,0x0004002b,0x00000011,+ 0x00000028,0x00000002,0x0004002b,0x00000011,0x0000003a,0x00000003,0x0004002b,0x00000011,+ 0x0000003f,0x00000004,0x0004002b,0x00000011,0x00000044,0x00000005,0x0004002b,0x00000011,+ 0x0000005e,0x00000006,0x0004002b,0x00000011,0x00000062,0x00000007,0x00040017,0x00000067,+ 0x0000000c,0x00000003,0x0004002b,0x0000000c,0x00000068,0x00000001,0x0006002c,0x00000067,+ 0x00000069,0x00000068,0x00000068,0x00000068,0x00050036,0x00000002,0x00000004,0x00000000,+ 0x00000003,0x000200f8,0x00000005,0x0004003b,0x0000000a,0x0000000b,0x00000007,0x0004003b,+ 0x0000000a,0x00000017,0x00000007,0x0004003b,0x0000001c,0x0000001d,0x00000007,0x0004003b,+ 0x0000001c,0x00000022,0x00000007,0x0004003b,0x0000001c,0x00000026,0x00000007,0x0004003b,+ 0x0000001c,0x0000002b,0x00000007,0x0004003b,0x0000001c,0x00000030,0x00000007,0x0004003b,+ 0x0000001c,0x00000034,0x00000007,0x0004003b,0x0000001c,0x00000038,0x00000007,0x0004003b,+ 0x0000001c,0x0000003d,0x00000007,0x0004003b,0x0000001c,0x00000042,0x00000007,0x0004003b,+ 0x0000001c,0x00000047,0x00000007,0x00050041,0x00000013,0x00000014,0x00000010,0x00000012,+ 0x0004003d,0x0000000d,0x00000015,0x00000014,0x0004007c,0x00000006,0x00000016,0x00000015,+ 0x0003003e,0x0000000b,0x00000016,0x00050041,0x00000013,0x00000019,0x00000010,0x00000018,+ 0x0004003d,0x0000000d,0x0000001a,0x00000019,0x0004007c,0x00000006,0x0000001b,0x0000001a,+ 0x0003003e,0x00000017,0x0000001b,0x0004003d,0x00000006,0x0000001e,0x0000000b,0x00060041,+ 0x0000001f,0x00000020,0x0000001e,0x00000012,0x00000012,0x0006003d,0x00000007,0x00000021,+ 0x00000020,0x00000002,0x00000004,0x0003003e,0x0000001d,0x00000021,0x0004003d,0x00000006,+ 0x00000023,0x0000000b,0x00060041,0x0000001f,0x00000024,0x00000023,0x00000012,0x00000018,+ 0x0006003d,0x00000007,0x00000025,0x00000024,0x00000002,0x00000004,0x0003003e,0x00000022,+ 0x00000025,0x0004003d,0x00000006,0x00000027,0x0000000b,0x00060041,0x0000001f,0x00000029,+ 0x00000027,0x00000012,0x00000028,0x0006003d,0x00000007,0x0000002a,0x00000029,0x00000002,+ 0x00000004,0x0003003e,0x00000026,0x0000002a,0x0004003d,0x00000007,0x0000002c,0x0000001d,+ 0x0004003d,0x00000007,0x0000002d,0x00000022,0x0004003d,0x00000007,0x0000002e,0x00000026,+ 0x0008000c,0x00000007,0x0000002f,0x00000001,0x00000032,0x0000002c,0x0000002d,0x0000002e,+ 0x0003003e,0x0000002b,0x0000002f,0x0004003d,0x00000007,0x00000031,0x0000001d,0x0004003d,+ 0x00000007,0x00000032,0x00000022,0x00050085,0x00000007,0x00000033,0x00000031,0x00000032,+ 0x0003003e,0x00000030,0x00000033,0x0004003d,0x00000007,0x00000035,0x00000030,0x0004003d,+ 0x00000007,0x00000036,0x00000026,0x00050081,0x00000007,0x00000037,0x00000035,0x00000036,+ 0x0003003e,0x00000034,0x00000037,0x0004003d,0x00000006,0x00000039,0x0000000b,0x00060041,+ 0x0000001f,0x0000003b,0x00000039,0x00000012,0x0000003a,0x0006003d,0x00000007,0x0000003c,+ 0x0000003b,0x00000002,0x00000004,0x0003003e,0x00000038,0x0000003c,0x0004003d,0x00000006,+ 0x0000003e,0x0000000b,0x00060041,0x0000001f,0x00000040,0x0000003e,0x00000012,0x0000003f,+ 0x0006003d,0x00000007,0x00000041,0x00000040,0x00000002,0x00000004,0x0003003e,0x0000003d,+ 0x00000041,0x0004003d,0x00000006,0x00000043,0x0000000b,0x00060041,0x0000001f,0x00000045,+ 0x00000043,0x00000012,0x00000044,0x0006003d,0x00000007,0x00000046,0x00000045,0x00000002,+ 0x00000004,0x0003003e,0x00000042,0x00000046,0x0004003d,0x00000007,0x00000048,0x00000038,+ 0x0004003d,0x00000007,0x00000049,0x0000003d,0x00050081,0x00000007,0x0000004a,0x00000048,+ 0x00000049,0x0004003d,0x00000007,0x0000004b,0x00000042,0x00050081,0x00000007,0x0000004c,+ 0x0000004a,0x0000004b,0x0003003e,0x00000047,0x0000004c,0x0004003d,0x00000006,0x0000004d,+ 0x00000017,0x0004003d,0x00000007,0x0000004e,0x0000002b,0x00060041,0x0000001f,0x0000004f,+ 0x0000004d,0x00000012,0x00000012,0x0005003e,0x0000004f,0x0000004e,0x00000002,0x00000004,+ 0x0004003d,0x00000006,0x00000050,0x00000017,0x0004003d,0x00000007,0x00000051,0x00000034,+ 0x00060041,0x0000001f,0x00000052,0x00000050,0x00000012,0x00000018,0x0005003e,0x00000052,+ 0x00000051,0x00000002,0x00000004,0x0004003d,0x00000006,0x00000053,0x00000017,0x0004003d,+ 0x00000007,0x00000054,0x00000047,0x00060041,0x0000001f,0x00000055,0x00000053,0x00000012,+ 0x00000028,0x0005003e,0x00000055,0x00000054,0x00000002,0x00000004,0x0004003d,0x00000006,+ 0x00000056,0x00000017,0x0004003d,0x00000007,0x00000057,0x0000001d,0x0004003d,0x00000007,+ 0x00000058,0x00000022,0x0004003d,0x00000007,0x00000059,0x00000026,0x0008000c,0x00000007,+ 0x0000005a,0x00000001,0x00000032,0x00000057,0x00000058,0x00000059,0x00060041,0x0000001f,+ 0x0000005b,0x00000056,0x00000012,0x0000003a,0x0005003e,0x0000005b,0x0000005a,0x00000002,+ 0x00000004,0x0004003d,0x00000006,0x0000005c,0x00000017,0x0004003d,0x00000006,0x0000005d,+ 0x0000000b,0x00060041,0x0000001f,0x0000005f,0x0000005d,0x00000012,0x0000005e,0x0006003d,+ 0x00000007,0x00000060,0x0000005f,0x00000002,0x00000004,0x0004003d,0x00000006,0x00000061,+ 0x0000000b,0x00060041,0x0000001f,0x00000063,0x00000061,0x00000012,0x00000062,0x0006003d,+ 0x00000007,0x00000064,0x00000063,0x00000002,0x00000004,0x00050085,0x00000007,0x00000065,+ 0x00000060,0x00000064,0x00060041,0x0000001f,0x00000066,0x0000005c,0x00000012,0x0000003f,+ 0x0005003e,0x00000066,0x00000065,0x00000002,0x00000004,0x000100fd,0x00010038+};