File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
backends/qualcomm/runtime Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -22,20 +22,24 @@ T get_option(T aot_option) {
2222
2323 if constexpr (std::is_same_v<T, QnnExecuTorchLogLevel>) {
2424 std::strncpy (
25- backend_option.key , QNN_RUNTIME_LOG_LEVEL, kMaxOptionKeyLength );
26- backend_option.key [kMaxOptionKeyLength - 1 ] = ' \0 ' ;
25+ backend_option.key ,
26+ QNN_RUNTIME_LOG_LEVEL,
27+ runtime::kMaxOptionKeyLength );
28+ backend_option.key [runtime::kMaxOptionKeyLength - 1 ] = ' \0 ' ;
2729 backend_option.value = -1 ;
2830 } else if constexpr (std::is_same_v<T, QnnExecuTorchHtpPerformanceMode>) {
2931 std::strncpy (
3032 backend_option.key ,
3133 QNN_RUNTIME_HTP_PERFORMANCE_MODE,
32- kMaxOptionKeyLength );
33- backend_option.key [kMaxOptionKeyLength - 1 ] = ' \0 ' ;
34+ runtime:: kMaxOptionKeyLength );
35+ backend_option.key [runtime:: kMaxOptionKeyLength - 1 ] = ' \0 ' ;
3436 backend_option.value = -1 ;
3537 } else if constexpr (std::is_same_v<T, QnnExecuTorchProfileLevel>) {
3638 std::strncpy (
37- backend_option.key , QNN_RUNTIME_PROFILE_LEVEL, kMaxOptionKeyLength );
38- backend_option.key [kMaxOptionKeyLength - 1 ] = ' \0 ' ;
39+ backend_option.key ,
40+ QNN_RUNTIME_PROFILE_LEVEL,
41+ runtime::kMaxOptionKeyLength );
42+ backend_option.key [runtime::kMaxOptionKeyLength - 1 ] = ' \0 ' ;
3943 backend_option.value = -1 ;
4044 }
4145
You can’t perform that action at this time.
0 commit comments