CPU — ทำไมถึงมีมากกว่าหนึ่งตัว?

การเขียน R Code อย่างมีประสิทธิภาพ

Colin Gillespie

Jumping Rivers & Newcastle University

CPU

  • CPU: สมองของคอมพิวเตอร์
    • ความเร็วค่อย ๆ คงที่
      • CPU ร้อนเกินไป
    • CPU แบบ Multi-core
    • แต่ R ใช้แค่ 1 core :(

การเขียน R Code อย่างมีประสิทธิภาพ

CPU ของคุณ

library("parallel")
detectCores()
8
library("benchmarkme")
get_cpu()
$vendor_id
"GenuineIntel"

$model_name
"Intel(R) Core(TM) i7-4702HQ CPU

$no_of_cores
8
การเขียน R Code อย่างมีประสิทธิภาพ

มาฝึกกันเถอะ!

การเขียน R Code อย่างมีประสิทธิภาพ

Preparing Video For Download...