iot-locus / kernels

BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Speed down for Odroid board #3

Open mrnakhkash opened 5 years ago

mrnakhkash commented 5 years ago

Hi, I have again faced some issue for the Odroid board which has a octa-core Arm processor. When I compile I use the standard Pthread library of Linux. should I compile with the Pthread lib provided in the benchmark??? Please give an answer since as soon as possible. Regards

tancheng commented 5 years ago

Hi, You should compile the code with the pthread lib instead of the one provided inside the benchmark. I think you only need to change the command line to utilize the posix pthread library. And change the #define dump inside the source code. Note that if you want to get the accurate timing for pthread version running on your linux kernel, you should give the 'timing()' function calls at the appropriate position (by replacing the 'dump()' function calls). Thanks