Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
for more stable result
Browse files Browse the repository at this point in the history
  • Loading branch information
luoyu-intel committed Apr 17, 2024
1 parent 4c17ba9 commit d4a419b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bestla/bestla/bestla_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ class CpuRuntime {

inline void adjustPE(const BTLA_ISA isa, const float PE_) {
// printf("Adjust:%d,%f\n",int(isa),PE_);
PE[int(isa)] = PE[int(isa)] * PE_ * 0.2f + PE[int(isa)] * 0.8f;
PE[int(isa)] = PE[int(isa)] * PE_ * 0.7 + PE[int(isa)] * 0.3;
}

size_t mL2Cache, mL1Cache, mL2Cache_P = 0, mL1Cache_P = 0, mL2Cache_E = 0, mL1Cache_E = 0;
Expand Down
2 changes: 1 addition & 1 deletion neural_speed/application/main_run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void sigint_handler(int signo) {
int main(int argc, char** argv) { // NOLINT
gpt_params params;
#ifdef _WIN32
if (!SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS)) {
if (!SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS)) {
auto dwError = GetLastError();
NE_PRINT_DEBUG("ERR: failed to set Procss Priority\n");
assert(dwError == ERROR_SUCCESS);
Expand Down

0 comments on commit d4a419b

Please sign in to comment.