CoolFace
Modelpublic

Felipe97/llama-cpp-compiled

sourceHugging Faceupdated 2d agoView on Hugging Face
0likes1.1kdownloads
test-cmake.cpp18 linesDownload Raw Back to test-cmake
1#include "llama.h"2#include <cstdio>3 4int main(void) {5#ifdef LLAMA_BUILD_NUMBER6    printf("[test-cmake] llama.cpp version: %s, build: %d (%s)\n",7           llama_version(), LLAMA_BUILD_NUMBER, LLAMA_BUILD_COMMIT);8#else9    printf("[test-cmake] llama.cpp version: %s\n", llama_version());10#endif11    printf("[test-cmake] ggml version: %s, commit: %s\n", ggml_version(), ggml_commit());12    printf("[test-cmake] Initializing backend...\n");13    llama_backend_init();14    printf("[test-cmake] Backend initialized.\n");15    llama_backend_free();16    return 0;17}18