หน้า: [1]   ลงล่าง
  พิมพ์  
ผู้เขียน หัวข้อ: ทดสอบ OpenCL ผ่าน pyopencl benchmark  (อ่าน 1967 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
cluangar
Administrator
Hero Member
*****
ออฟไลน์ ออฟไลน์

กระทู้: 761


ดูรายละเอียด
« เมื่อ: สิงหาคม 09, 2020, 07:59:14 PM »

  หลังจากลง driver ที่ใช้งาน opencl ได้แล้ว  ถึงเวลาหาคำตอบว่าประสิทธิภาพการใช้งานจะแตกต่างจากการไม่ใช้ GPU ช่วยสักเพียงไหน  อ้างอิง https://stackoverflow.com/questions/7376616/pyopencl-benchmark-questions

  ติดตั้ง sudo apt-install pyopencl
  run python benckmark-all.py

  สังเกตตัวเลขเวลา 3 ค่า
    - Execution time of test without OpenCL : 0.37642 sec
    - Execution time of test (GPU Mali T860) : 0.000129688 sec
    - Execution time of test (CPU RK3399, A53 4 cores, A72 2 Cores) : 0.0015295
  ประสิทธิภาพ GPU ทำงานเร็วกว่าราว 8 เท่า (0.000129688 / 0.0015295)


* opencl1.png (40.14 KB, 825x501 - ดู 365 ครั้ง.)

* opencl2.png (36.37 KB, 825x501 - ดู 325 ครั้ง.)
« แก้ไขครั้งสุดท้าย: สิงหาคม 10, 2020, 11:41:10 AM โดย cluangar » บันทึกการเข้า
หน้า: [1]   ขึ้นบน
  พิมพ์  
 
กระโดดไป: