Parcourir la source

Add FLOPS example

David Peter il y a 2 ans
Parent
commit
d10f711876
1 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 11 0
      examples/flops.nbt

+ 11 - 0
examples/flops.nbt

@@ -0,0 +1,11 @@
+unit FLOP
+
+@metric_prefixes
+@aliases(FLOPS: both)
+unit FLOPS = FLOP / second
+
+@aliases(cores)
+unit core
+
+let speed = 16 FLOP × 3.5 GHz / core × 12 cores -> GFLOPS
+print(speed)