基于GPU的视频卡加速您的程序计算,如何?

时间:2021-12-16 21:24:09

I read in this article that a company has created a software capable of using multiple GPU-based video cards in parallel to process hundreds of billions fixed-point calculations per second.

我在本文中读到,一家公司已经创建了一个软件,能够并行使用多个基于GPU的视频卡,每秒处理数千亿个定点计算。

The program seems to run in Windows. Is it possible from Windows to assign a thread to a GPU? Do they create their own driver and then interact with it? Any idea of how they do it?

该程序似乎在Windows中运行。是否可以从Windows将线程分配给GPU?他们是否创建了自己的驱动程序然后与之交互?知道他们是怎么做的吗?

2 个解决方案

#1


5  

I imagine that they are using a language like CUDA to program the critical sections of code on the GPUs to accelerate their computation.

我想他们正在使用像CUDA这样的语言对GPU上的关键代码段进行编程,以加速他们的计算。

The main function for the program (and its threads) would still run on the host CPU, but data are shipped off the the GPUs for processing of advanced algorithms. CUDA is an extension to C syntax, so it makes it easier to programmer than having to learn the older shader languages like Cg for programming general purpose calculations on a GPU.

程序(及其线程)的主要功能仍然可以在主机CPU上运行,但是数据是从GPU发出的,用于处理高级算法。 CUDA是C语法的扩展,因此它使程序员更容易学习像Cg这样的旧着色器语言来编程GPU上的通用计算。

#2


3  

A good place to start - GPGPU

一个好的起点 - GPGPU

Also, for the record, I don't think there is such a thing as non-GPU based graphic cards. GPU stands for graphics processing unit which is by definition the heart of a graphics card.

此外,为了记录,我认为没有基于非GPU的图形卡这样的东西。 GPU代表图形处理单元,根据定义,它是图形卡的核心。

#1


5  

I imagine that they are using a language like CUDA to program the critical sections of code on the GPUs to accelerate their computation.

我想他们正在使用像CUDA这样的语言对GPU上的关键代码段进行编程,以加速他们的计算。

The main function for the program (and its threads) would still run on the host CPU, but data are shipped off the the GPUs for processing of advanced algorithms. CUDA is an extension to C syntax, so it makes it easier to programmer than having to learn the older shader languages like Cg for programming general purpose calculations on a GPU.

程序(及其线程)的主要功能仍然可以在主机CPU上运行,但是数据是从GPU发出的,用于处理高级算法。 CUDA是C语法的扩展,因此它使程序员更容易学习像Cg这样的旧着色器语言来编程GPU上的通用计算。

#2


3  

A good place to start - GPGPU

一个好的起点 - GPGPU

Also, for the record, I don't think there is such a thing as non-GPU based graphic cards. GPU stands for graphics processing unit which is by definition the heart of a graphics card.

此外,为了记录,我认为没有基于非GPU的图形卡这样的东西。 GPU代表图形处理单元,根据定义,它是图形卡的核心。