UCL-RITS / pi_examples

A lot of ways to run the same way of calculating pi. Some of them are dumb.
Creative Commons Zero v1.0 Universal
28 stars 8 forks source link

Add Julia IPU example #17

Closed giordano closed 1 year ago

giordano commented 1 year ago
$ ./pi.jl 
[ Info: Trying to attach to device 0...
[ Info: Successfully attached to device 0
✓ Compiling codelet Pi:          Time: 0:00:03
Calculating PI using:
  4294966272 slices
  1472 IPU tiles
Obtained value of PI: 3.1499734
Time taken: 0.1316 seconds (175066908 cycles at 1.33 GHz)

Compare with C++ example in #16 :slightly_smiling_face: