File tree Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -777,6 +777,7 @@ jobs:
777
777
cmake -S . -B build ${{ matrix.defines }} `
778
778
-DCURL_LIBRARY="$env:CURL_PATH/lib/libcurl.dll.a" -DCURL_INCLUDE_DIR="$env:CURL_PATH/include"
779
779
cmake --build build --config Release -j ${env:NUMBER_OF_PROCESSORS}
780
+ cp $env:CURL_PATH/bin/libcurl-*.dll build/bin/Release
780
781
781
782
- name : Add libopenblas.dll
782
783
id : add_libopenblas_dll
Original file line number Diff line number Diff line change @@ -767,6 +767,9 @@ bool fs_validate_filename(const std::string & filename) {
767
767
return true ;
768
768
}
769
769
770
+ #include < iostream>
771
+
772
+
770
773
// returns true if successful, false otherwise
771
774
bool fs_create_directory_with_parents (const std::string & path) {
772
775
#ifdef _WIN32
@@ -784,11 +787,18 @@ bool fs_create_directory_with_parents(const std::string & path) {
784
787
// process path from front to back, procedurally creating directories
785
788
while ((pos_slash = path.find (' \\ ' , pos_slash)) != std::string::npos) {
786
789
const std::wstring subpath = wpath.substr (0 , pos_slash);
787
- const wchar_t * test = subpath.c_str ();
790
+ pos_slash += 1 ;
791
+ // skip the drive letter, in some systems it can return an access denied error
792
+ if (subpath.length () == 2 && subpath[1 ] == ' :' ) {
793
+ continue ;
794
+ }
795
+
796
+ const bool success = CreateDirectoryW (subpath.c_str (), NULL );
788
797
789
- const bool success = CreateDirectoryW (test, NULL ) ;
798
+ std::wcout << " CreateDirectoryW " << subpath << " returned: " << (success ? " true " : " false " ) << std::endl ;
790
799
if (!success) {
791
800
const DWORD error = GetLastError ();
801
+ std::wcout << " GetLastError returned: " << error << std::endl;
792
802
793
803
// if the path already exists, ensure that it's a directory
794
804
if (error == ERROR_ALREADY_EXISTS) {
@@ -800,8 +810,6 @@ bool fs_create_directory_with_parents(const std::string & path) {
800
810
return false ;
801
811
}
802
812
}
803
-
804
- pos_slash += 1 ;
805
813
}
806
814
807
815
return true ;
Original file line number Diff line number Diff line change @@ -24,11 +24,13 @@ int main(int argc, char ** argv) {
24
24
llama_backend_init ();
25
25
llama_numa_init (params.numa );
26
26
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
+ LOG_INF (" %s\n " , common_params_get_system_info (params).c_str ());
28
+
29
+ // llama_log_set([](ggml_log_level level, const char * text, void * /*user_data*/) {
30
+ // if (level == GGML_LOG_LEVEL_ERROR) {
31
+ // common_log_add(common_log_main(), level, "%s", text);
32
+ // }
33
+ // }, NULL);
32
34
33
35
auto mparams = common_model_params_to_llama (params);
34
36
auto cparams = common_context_params_to_llama (params);
You can’t perform that action at this time.
0 commit comments