瀏覽代碼

Add FLOPS example

David Peter 2 年之前
父節點
當前提交
d10f711876
共有 1 個文件被更改,包括 11 次插入0 次删除
  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)