在 LabVIEW 中执行 CUDA
我想在LabVIEW中执行CUDA操作,并行传输GPU中的多个文件,然后在GPU上执行算术运算,然后将数据保存在新文件中。我了解到,为了在GPU中执行操作,我们需要创建一个DLL文件,然后将其导入LabVIEW,但我不知道如何操作。你能给我一些类似操作的例子吗?
I want to perform CUDA operation in LabVIEW to transfer multiple files in GPU in parallel and then perform arithmetic operations on GPU and then save the data in new file. I learnt that in order to perform operations in GPU, we need to create a DLL file and then import it to LabVIEW but I don't know how. Can you give me some example of a similar operation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
以下是您可能会感兴趣的链接:
LabVIEW GPU 计算
Here is the link that you might find interesting:
LabVIEW GPU Computing
正如你所说,LabVIEW不支持CUDA。在LabVIEW中调用DLL非常简单,使用调用库用于此目的的功能节点。
更简单的是,一旦您编写了 dll,通过进入“工具”菜单 ->“工具”中的向导,让 LabVIEW 围绕您的 DLL 生成 VI 包装器。导入->共享库
另请参阅这篇文章,它对事情进行了相当广泛的解释。
LabVIEW has no support of CUDA, as you said. Calling DLL in LabVIEW is quite easy, Use the Call Library Function node for this purpose.
Even easier, once you've written the dll, have LabVIEW generate VI wrappers around your DLL by entering the wizard in Tools menu -> Import -> Shared library
See also this article that explains things quite extensively.
NI 网站上还应该提供一组 CUDA VI。我不知道这些对你的情况是否有帮助,因为你似乎已经有了 C 代码,但它可能会。
NI should also has a set of CUDA VIs available on their site. I don't know if those would help in your case, since you already seem to have the C code, but it might.
是的,NI 可以提供支持。请加入此社区群组。您可以安装一个库,以便在 LabVIEW 中获得 CUDA 支持。另外,如果需要,请将问题发布到此社区组以寻求帮助。
Yes, NI can provide support. Please join this community group. There is a library that you can install so you can have CUDA support in LabVIEW. Also, please post questions to this community group for help if needed.