File tree 3 files changed +7
-11
lines changed 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -2987,9 +2987,13 @@ static struct ggml_tensor * ggml_new_tensor_impl(
2987
2987
/*.data =*/ obj_alloc_size > 0 ? (void *)(result + 1) : data,
2988
2988
/*.name =*/ { 0 },
2989
2989
/*.extra =*/ NULL,
2990
+ /*.rank =*/ n_dims,
2990
2991
/*.padding =*/ { 0 },
2991
2992
};
2992
2993
2994
+ if (ctx->use_hwaccel)
2995
+ result->backend = GGML_BACKEND_TYPE_GPU;
2996
+
2993
2997
// TODO: this should not be needed as long as we don't rely on aligned SIMD loads
2994
2998
//ggml_assert_aligned(result->data);
2995
2999
Original file line number Diff line number Diff line change @@ -591,7 +591,9 @@ extern "C" {
591
591
592
592
void * extra ; // extra things e.g. for ggml-cuda.cu
593
593
594
- char padding [8 ];
594
+ int32_t rank ;
595
+
596
+ char padding [20 ];
595
597
};
596
598
597
599
static const size_t GGML_TENSOR_SIZE = sizeof (struct ggml_tensor );
Original file line number Diff line number Diff line change @@ -4066,14 +4066,6 @@ static int whisper_has_openvino(void) {
4066
4066
#endif
4067
4067
}
4068
4068
4069
- static int whisper_has_qnn (void ) {
4070
- #ifdef GGML_USE_QNN
4071
- return 1 ;
4072
- #else
4073
- return 0 ;
4074
- #endif
4075
- }
4076
-
4077
4069
const char * whisper_print_system_info (void ) {
4078
4070
static std::string s;
4079
4071
@@ -4095,8 +4087,6 @@ const char * whisper_print_system_info(void) {
4095
4087
s += " CUDA = " + std::to_string (ggml_cpu_has_cuda ()) + " | " ;
4096
4088
s += " COREML = " + std::to_string (whisper_has_coreml ()) + " | " ;
4097
4089
s += " OPENVINO = " + std::to_string (whisper_has_openvino ()) + " | " ;
4098
- s += " QNN = " + std::to_string (whisper_has_qnn ()) ;
4099
-
4100
4090
4101
4091
return s.c_str ();
4102
4092
}
You can’t perform that action at this time.
0 commit comments