Skip to content

Commit b760272

Browse files
hexagon: guard HMX clock request for v75+ platforms (#22377)
1 parent dcad77c commit b760272

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • ggml/src/ggml-hexagon/htp

ggml/src/ggml-hexagon/htp/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ AEEResult htp_iface_open(const char * uri, remote_handle64 * handle) {
101101
}
102102
}
103103

104+
#if __HVX_ARCH__ >= 75
104105
{
105106
// Set HMX clock
106107
HAP_power_request_t request;
@@ -118,6 +119,7 @@ AEEResult htp_iface_open(const char * uri, remote_handle64 * handle) {
118119
return err;
119120
}
120121
}
122+
#endif
121123

122124
return AEE_SUCCESS;
123125
}

0 commit comments

Comments
 (0)