Re:The Supercomputer In Your Pocket: Metal and Swift
by stephencanon on Friday May 29, 2015 @04:37PM
(#9627195)
The iPhone 6 CPU is significantly faster than 1.3 gigaflops. The 5s is capable of 10.4 gigaflops on LINPACK, and the 6 is faster still. Would have made Top500 in the late 90s.
[ Parent
| on HN ]
Re:The Supercomputer In Your Pocket: Metal and Swift
by amund on Saturday May 30, 2015 @01:23AM
(#9629125)
My experience is that iPhone 6 GPU can be up to 50-70 times faster than the CPU - for single precision floating point (i.e. Swift running on the CPU, and Metal on the GPU). See http://memkite.com/blog/2014/12/18/gpgpu-performance-of-swif... for an example (comparison with Accelerate framework)
Re:The Supercomputer In Your Pocket: Metal and Swift
by stephencanon on Sunday May 31, 2015 @08:22PM
(#9636177)
That's almost a "what not to do" for using Accelerate. You're introducing multiple passes over the data, and introducing extra dummy arrays that need to be passed over as well, which blows up the load-store traffic further. You're also using vvpowf to compute a simple reciprocal, which is wildly inefficient.
I don't mean to pick on you, but it's a misleading comparison. A basic transform that only gets rid of the extra working arrays and does no other optimizations is ~5-10x faster in my quick timings:
vvexpf(&result, &negx, &localcount)
let one = Float(1)
vDSP_vsadd(&result, 1, &one, &result, 1, localcount)
vDSP_svdiv(&one, &result, 1, &result, 1, localcount)
Re:The Supercomputer In Your Pocket: Metal and Swift
by sp332 on Friday May 29, 2015 @04:40PM
(#9627225)
Do you have a source? I couldn't find many people actually running Linpack on iPhones.
Re:The Supercomputer In Your Pocket: Metal and Swift
by stephencanon on Friday May 29, 2015 @04:43PM
(#9627247)
https://developer.apple.com/videos/wwdc/2014/#703 around the 30 minute mark.