Parallel computing

15.1 硬件

Show the code
if(!require(benchmarkme)) install.packages("benchmarkme")

1字节(byte)= 8位(bit) 二进制数 = 1个 ASCII 字符。

International System of Units (SI)

Show the code
# 随机存取存储器 Random access memory,RAM
get_ram()
#> 33.9 GB


# CPU
get_cpu()
#> $vendor_id
#> [1] "GenuineIntel"
#> 
#> $model_name
#> [1] "Intel(R) Core(TM) Ultra 5 125H"
#> 
#> $no_of_cores
#> [1] 18

standard hard disk drives (HDDs)

Solid state drives (SSDs)

15.2 并行计算

Cluster

Master

Worker

Job -> (Spilt) -> task 1,…,n, -> (feed) -> R worker

https://www.futureverse.org/

15.2.1 furrr

15.2.2 future.apply

15.2.3 BiocParallel