Explorar o código

Add FLOPS example

David Peter %!s(int64=2) %!d(string=hai) anos
pai
achega
d10f711876
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  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)