GPU

最後更新: 2018-01-21

介紹

 


Heterogeneous System Architecture (HSA)

 

HSA is a computer processor architecture that integrates CPU and GPU on the same bus, with shared memory and tasks.

CPU: central processing units

GPU: graphics processors

* HSA defines a unified virtual address space space for compute devices

HSA Intermediate Layer (HSAIL), a virtual instruction set for parallel programs

HSA 運作:

App(Queue job) --> CPU(HSA) --> GPU(Start job)
GPU(Finish job) --> CPU(HSA) --> App(Results)

HSA specifications cover

 * a virtual instruction set for parallel programs
 * memory model
 * dispatcher and run-time (queueing)

在沒有 HSA 時:

CPU's MMU || GPU's IOMMU
 RAM <-zero copy-> RAM

* 要靠 "zero copy" 提升效能

** In "partitioned main memory", one part of the system memory is exclusively allocated to the GPU.

As a result, zero-copy operation are not possible.

 


Nvidia

 

https://datahunter.org/nvidia

用電

# 4 display card (1070 X 3 1060 X 1)

# nvidia-smi -> 電錶

32W -> 47W

375W -> 434W

收益

支出: 434 / 1000 * 24 * 30 * 1.2 = HK$375

coin per mo: 0.3/mo @20190522

price: HK$1987 @20190522

收入: 0.3 * 1987 = HK$596

 


AMD

 

https://datahunter.org/amd_gpu