]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
hexagon: guard HMX clock request for v75+ platforms (#22377)
authorTrivikram Reddy <redacted>
Sun, 26 Apr 2026 00:58:26 +0000 (19:58 -0500)
committerGitHub <redacted>
Sun, 26 Apr 2026 00:58:26 +0000 (17:58 -0700)
ggml/src/ggml-hexagon/htp/main.c

index 62942f6384ca17a1706a27c0e3e98e11bde52e24..f58347304bee2e1723fabd7e088830f32272ee27 100644 (file)
@@ -101,6 +101,7 @@ AEEResult htp_iface_open(const char * uri, remote_handle64 * handle) {
         }
     }
 
+#if __HVX_ARCH__ >= 75
     {
         // Set HMX clock
         HAP_power_request_t request;
@@ -118,6 +119,7 @@ AEEResult htp_iface_open(const char * uri, remote_handle64 * handle) {
             return err;
         }
     }
+#endif
 
     return AEE_SUCCESS;
 }