In WSL2 (ubuntu 20.04), how do i specific using only the PERFORMANCE cores at RUN-TIME when using OneAPI DPL.
intel’s icpx compiler and one API version 2024.1
Intel(R) oneAPI DPC++/C++ Compiler 2024.1.0 (2024.1.0.20240308)
CPU/iGPU – Intel(R) Core(TM) Ultra 7 155H
/opt/intel/oneapi/2024.1/bin/icpx -O3 -std=c++17 -ffast-math -qmkl -mavx2 -mfma -I/opt/intel/oneapi/dpl/2022.5/include -L/opt/intel/oneapi/tbb/2021.12/lib -lm -lpthread -ltbb XXXYYY.cpp
Executable a.out
std::vector<float> _multi_dpls{15.234,29.234,45.8723,91.893,62.837,45.239,0.234,15.238,62.182,45.234,10.234};
std::for_each(dpl::execution::par,std::begin(_multi_dpls),std::end(_multi_dpls),[&](int x_tgt){
for (auto iterObj:_multi_dpls){
std::cout << "values ---> " << (sqrt(iterObj) * logf(iterObj)) << std::endl;
continue;
}
});