Skip to content

Commit a2a0289

Browse files
committed
test
ggml-ci
1 parent bf45300 commit a2a0289

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,7 @@ jobs:
777777
cmake -S . -B build ${{ matrix.defines }} `
778778
-DCURL_LIBRARY="$env:CURL_PATH/lib/libcurl.dll.a" -DCURL_INCLUDE_DIR="$env:CURL_PATH/include"
779779
cmake --build build --config Release -j ${env:NUMBER_OF_PROCESSORS}
780+
cp $env:CURL_PATH/bin/libcurl-*.dll build/bin/Release
780781
781782
- name: Add libopenblas.dll
782783
id: add_libopenblas_dll

common/common.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,9 @@ bool fs_validate_filename(const std::string & filename) {
767767
return true;
768768
}
769769

770+
#include <iostream>
771+
772+
770773
// returns true if successful, false otherwise
771774
bool fs_create_directory_with_parents(const std::string & path) {
772775
#ifdef _WIN32
@@ -790,10 +793,14 @@ bool fs_create_directory_with_parents(const std::string & path) {
790793
if (!success) {
791794
const DWORD error = GetLastError();
792795

796+
std::wcout << L"CreateDirectoryW for " << subpath << L": " << error << std::endl;
797+
798+
793799
// if the path already exists, ensure that it's a directory
794800
if (error == ERROR_ALREADY_EXISTS) {
795801
const DWORD attributes = GetFileAttributesW(subpath.c_str());
796802
if (attributes == INVALID_FILE_ATTRIBUTES || !(attributes & FILE_ATTRIBUTE_DIRECTORY)) {
803+
std::wcout << L"Attributes for " << subpath << L": " << attributes << std::endl;
797804
return false;
798805
}
799806
} else {

tests/test-thread-safety.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ int main(int argc, char ** argv) {
2424
llama_backend_init();
2525
llama_numa_init(params.numa);
2626

27-
llama_log_set([](ggml_log_level level, const char * text, void * /*user_data*/) {
28-
if (level == GGML_LOG_LEVEL_ERROR) {
29-
common_log_add(common_log_main(), level, "%s", text);
30-
}
31-
}, NULL);
27+
//llama_log_set([](ggml_log_level level, const char * text, void * /*user_data*/) {
28+
// if (level == GGML_LOG_LEVEL_ERROR) {
29+
// common_log_add(common_log_main(), level, "%s", text);
30+
// }
31+
//}, NULL);
3232

3333
auto mparams = common_model_params_to_llama(params);
3434
auto cparams = common_context_params_to_llama(params);

0 commit comments

Comments
 (0)