Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ bool common_debug_cb_eval(struct ggml_tensor * t, bool ask, void * user_data) {
}
}

char src1_str[128] = { 0 };
char src1_str[256] = { 0 };
if (src1) {
snprintf(src1_str, sizeof(src1_str), "%s{%s}", src1->name, common_ggml_ne_string(src1).c_str());
}
Expand Down
5 changes: 5 additions & 0 deletions ggml/src/ggml-vulkan/ggml-vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ DispatchLoaderDynamic & ggml_vk_default_dispatcher();
#if defined(_MSC_VER)
# define NOMINMAX 1
# include <windows.h>
// windows.h (winnt.h) defines MemoryBarrier as a macro that expands to an
// intrinsic call (e.g. __faststorefence()). That collides with vk::MemoryBarrier
// and causes MSVC C2146 syntax errors. Undefine it; nothing in this TU needs
// the Win32 MemoryBarrier intrinsic.
# undef MemoryBarrier
# define YIELD() YieldProcessor()
#elif defined(__clang__) || defined(__GNUC__)
# if defined(__x86_64__) ||defined(__i386__)
Expand Down
2 changes: 1 addition & 1 deletion src/llama-adapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct llama_adapter_lora {
llama_adapter_lora_weight * get_weight(ggml_tensor * w);

uint32_t get_n_nodes() const {
return ab_map.size() * 6u; // a, b, scale, add, 2 x mul_mat
return static_cast<uint32_t>(ab_map.size()) * 6u; // a, b, scale, add, 2 x mul_mat
}
};

Expand Down
Loading