aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-llama-cpp/project/main.cxx
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/test_ports/vcpkg-ci-llama-cpp/project/main.cxx
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-llama-cpp/project/main.cxx')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-llama-cpp/project/main.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-llama-cpp/project/main.cxx b/vcpkg/scripts/test_ports/vcpkg-ci-llama-cpp/project/main.cxx
new file mode 100644
index 0000000..f407142
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-llama-cpp/project/main.cxx
@@ -0,0 +1,15 @@
+#include <llama.h>
+
+// Verify that ggml::ggml-vulkan can be used with apps which
+// instantiate VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE.
+#if defined(VULKAN_HPP_DISPATCH_LOADER_DYNAMIC) && VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1
+#include <vulkan/vulkan.hpp>
+VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE
+#endif
+
+int main()
+{
+ auto context_params = llama_context_default_params();
+ ggml_backend_load_all();
+ return 0;
+}