Skip to content

Commit b003381

Browse files
committed
linting fixes
1 parent 258e8b9 commit b003381

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

onnxruntime/core/providers/qnn/builder/qnn_backend_manager.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,11 +1543,11 @@ Status QnnBackendManager::SetRpcPowerConfigs(uint32_t htp_power_config_client_id
15431543

15441544
auto* htp_infra = static_cast<QnnHtpDevice_Infrastructure_t*>(qnn_device_infra);
15451545
ORT_RETURN_IF(QNN_HTP_DEVICE_INFRASTRUCTURE_TYPE_PERF != htp_infra->infraType,
1546-
"HTP infra type = ", htp_infra->infraType, ", which is not perf infra type.");
1546+
"HTP infra type = ", htp_infra->infraType, ", which is not perf infra type.");
15471547
QnnHtpDevice_PerfInfrastructure_t& htp_perf_infra = htp_infra->perfInfra;
15481548

15491549
std::vector<const QnnHtpPerfInfrastructure_PowerConfig_t*> perf_power_configs_ptr =
1550-
ObtainNullTermPtrVector(rpc_power_configs);
1550+
ObtainNullTermPtrVector(rpc_power_configs);
15511551
status = htp_perf_infra.setPowerConfig(htp_power_config_client_id, perf_power_configs_ptr.data());
15521552
ORT_RETURN_IF(QNN_SUCCESS != status, "setPowerConfig failed for RPC control latency.");
15531553
}
@@ -1585,14 +1585,13 @@ Status QnnBackendManager::AddPerThreadHtpPowerConfigMapping(const std::thread::i
15851585

15861586
auto res = per_thread_power_configs_.find(thread_id);
15871587
ORT_RETURN_IF(res != per_thread_power_configs_.end(), "Trying to set HtpPowerConfigs for thread id ", thread_id,
1588-
" but one already exists!");
1588+
" but one already exists!");
15891589

15901590
per_thread_power_configs_.emplace(thread_id, std::move(htp_power_configs));
15911591

15921592
return Status::OK();
15931593
}
15941594

1595-
15961595
bool QnnBackendManager::GetPerThreadHtpPowerConfigMapping(const std::thread::id& thread_id,
15971596
PerThreadHtpPowerConfigs_t& htp_power_configs) {
15981597
std::lock_guard<std::mutex> lock(per_thread_power_configs_mutex_);

onnxruntime/core/providers/qnn/qnn_execution_provider.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,6 @@ qnn::PerThreadHtpPowerConfigs_t QNNExecutionProvider::GetPerThreadHtpPowerConfig
13911391
ParseHtpPerformanceMode(htp_perf_mode, post_run_htp_performance_mode);
13921392
}
13931393

1394-
13951394
std::string rpc_latency = "";
13961395
uint32_t rpc_control_latency = 0;
13971396
if (TryGetConfigEntry(config_options, kOrtRunOptionsConfigQnnRpcControlLatency, rpc_latency)) {
@@ -1429,7 +1428,6 @@ Status QNNExecutionProvider::OnRunStart(const onnxruntime::RunOptions& run_optio
14291428
return Status::OK();
14301429
}
14311430

1432-
14331431
const ConfigOptions& config_options = RunOptions__GetConfigOptions(run_options);
14341432

14351433
if (IsHtpPowerConfigIdValid()) {

0 commit comments

Comments
 (0)