Browse Source

Add FLOPS example

David Peter 2 years ago
parent
commit
d10f711876
1 changed files with 11 additions and 0 deletions
  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)