fork/numbat

git clone https://git.julia.blue/fork/numbat

David PeterUpdate FLOP example8645174

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