亲爱的 StackOverflow 社区,
为了使用 OpenACC 使用 GPU 加速,我正在 pgi 编译器中使用“-ta”标志。我没有找到任何全面的答案。是的,我知道它被称为目标加速器,以使用有关硬件的信息来提升。那么,如果我的 GPU 硬件是,我应该设置什么 -ta :
weugene@landau:~$ sudo lspci -vnn | grep VGA -A 12
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104GL [10de:1bb1] (rev a1) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation GP104GL [Quadro P4000] [10de:11a3]
Physical Slot: 4
Flags: bus master, fast devsel, latency 0, IRQ 46, NUMA node 0
Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Legacy Endpoint, MSI 00
Capabilities: [100] Virtual Channel
pgi 编译器 ( /opt/pgi/linux86-64/2019/cuda
) 的 CUDA 版本为: 9.2、10.0、10.1
先感谢您!
最好的问候, Evgenii