flops.nbt 289 B

1234567891011121314151617
  1. unit FLOP
  2. @metric_prefixes
  3. @aliases(FLOPS: both)
  4. unit FLOPS = FLOP / second
  5. @aliases(cores)
  6. unit core
  7. unit cycle
  8. let flop = 16 FLOP / core / cycle
  9. let num_cores = 12 cores
  10. let clock_rate: Cycle / Time = 3.5 GHz cycle
  11. let speed = flop × clock_rate × num_cores -> GFLOPS
  12. print(speed)