[CPU] Support int8 compute mode in CPU AWQ (#35697)

Signed-off-by: Yintong Lu <yintong.lu@intel.com>
This commit is contained in:
Yintong Lu
2026-03-31 15:27:37 +08:00
committed by GitHub
parent 42318c840b
commit f09daea261
10 changed files with 1197 additions and 11 deletions

View File

@@ -117,6 +117,14 @@ inline void parallel_for(int n, const func_t& f) {
#endif
}
inline int get_thread_num() {
#if defined(_OPENMP)
return omp_get_thread_num();
#else
return 0;
#endif
}
// for 1d parallel, use `actual_nth`
// for 2d parallel, use even nths, e.g. 43->42
int inline adjust_num_threads(int m) {