I decided to install taskset on Alpine Linux and try the serial Pi chart program.Last week I dropped my mobile phone--not the iPad--on the tiles and it landed glass side down.
After ordering the 2023 Motorola Play for $99 and removing the bundled TikTok, I went to the play store and installed the free UserLAnd Linux on Android application.
Fido recommended the Alpine option and thenAt this point it was possible to download the Pi chart program, compile it and obtainCode:
# apk add gcc make musl-dev
The phone apparently has 8 cores which together have about the same power as the Pi 4B.Code:
$ ./pichart-openmppichart -- Raspberry Pi Performance OPENMP version 40Prime Sieve P=14630843 Workers=16 Sec=0.461611 Mops=2024.06Merge Sort N=16777216 Workers=16 Sec=0.514076 Mops=783.256Fourier Transform N=4194304 Workers=16 Sec=0.99589 Mflops=463.277Lorenz 96 N=32768 K=16384 Workers=8 Sec=1.99552 Mflops=1614.23My Computer has Raspberry Pi ratio=29.3006Making pie charts...done.
Considering Android is based on Linux, it should not be surprising how easy it was to download something from the play store to compile the Pi chart calculations. Even so, I was surprised.
Code:
# apk add util-linux
Code:
$ taskset -c 0 ./pichart-serialpichart -- Raspberry Pi Performance Serial version 40Prime Sieve P=14630843 Workers=2 Sec=2.90581 Mops=321.538Merge Sort N=16777216 Workers=2 Sec=2.95629 Mops=136.202Fourier Transform N=4194304 Workers=1 Sec=5.36103 Mflops=86.0605Lorenz 96 N=32768 K=16384 Workers=1 Sec=7.41403 Mflops=434.477My Computer has Raspberry Pi ratio=5.64858Making pie charts...done.$ taskset -c 4 ./pichart-serialpichart -- Raspberry Pi Performance Serial version 40Prime Sieve P=14630843 Workers=1 Sec=3.72864 Mops=250.582Merge Sort N=16777216 Workers=2 Sec=3.75661 Mops=107.185Fourier Transform N=4194304 Workers=2 Sec=5.85227 Mflops=78.8366Lorenz 96 N=32768 K=16384 Workers=1 Sec=9.49818 Mflops=339.141My Computer has Raspberry Pi ratio=4.59664Making pie charts...done.
Statistics: Posted by ejolson — Mon Feb 26, 2024 4:32 am