Skip to content

Commit 8a4a9b8

Browse files
committed
Merge branch 'upstream' into concedo_experimental
2 parents 9e182b3 + a6f32f0 commit 8a4a9b8

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

common/minja/minja.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class Value : public std::enable_shared_from_this<Value> {
240240
auto index = key.get<int>();
241241
return array_->at(index < 0 ? array_->size() + index : index);
242242
} else if (object_) {
243-
if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
243+
if (!key.is_hashable()) throw std::runtime_error("Unhashable type: " + dump());
244244
auto it = object_->find(key.primitive_);
245245
if (it == object_->end()) return Value();
246246
return it->second;
@@ -249,7 +249,7 @@ class Value : public std::enable_shared_from_this<Value> {
249249
}
250250
void set(const Value& key, const Value& value) {
251251
if (!object_) throw std::runtime_error("Value is not an object: " + dump());
252-
if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
252+
if (!key.is_hashable()) throw std::runtime_error("Unhashable type: " + dump());
253253
(*object_)[key.primitive_] = value;
254254
}
255255
Value call(const std::shared_ptr<Context> & context, ArgumentsValue & args) const {

ggml/src/ggml-vulkan/ggml-vulkan.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3151,7 +3151,9 @@ static void ggml_vk_print_gpu_info(size_t idx) {
31513151
&& shader_integer_dot_product_features.shaderIntegerDotProduct;
31523152

31533153
coopmat_support = coopmat_support
3154+
#if defined(GGML_VULKAN_COOPMAT_GLSLC_SUPPORT)
31543155
&& coopmat_features.cooperativeMatrix
3156+
#endif
31553157
&& ggml_vk_khr_cooperative_matrix_support(props2.properties, driver_props, device_architecture);
31563158

31573159
std::string matrix_cores = coopmat2_support ? "NV_coopmat2" : coopmat_support ? "KHR_coopmat" : "none";

ggml/src/gguf.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,7 @@ static void gguf_check_reserved_keys(const std::string & key, const T val) {
977977
if constexpr (std::is_same<T, uint32_t>::value) {
978978
GGML_ASSERT(val > 0 && (val & (val - 1)) == 0 && GGUF_KEY_GENERAL_ALIGNMENT " must be power of 2");
979979
} else {
980+
GGML_UNUSED(val);
980981
GGML_ABORT(GGUF_KEY_GENERAL_ALIGNMENT " must be type u32");
981982
}
982983
}

0 commit comments

Comments
 (0)