可以CULA程序从设备的内核叫什么名字? [英] Can CULA routines be called from device kernels?

查看:136
本文介绍了可以CULA程序从设备的内核叫什么名字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我想看看是否我可以使用GPU在同一时间解决了一堆解方程的一小超定系统得到一些显著加速。我的当前算法涉及使用LU分解函数从还具有来回切换GPU和CPU的初始化和运行CULA功能之间的CULA密库。我希望能够从我的CUDA内核调用CULA功能,这样我就不必跳回CPU和数据复制回来。这也让我创建正在对不同的数据集应同时解决多个系统多个线程。我的问题是,我可以从设备的功能调用CULA的功能呢?我知道这是可能的CUBLAS和其他一些CUDA库。

So I'm trying to see if I can get some significant speedup from using a GPU to solve a small overdetermined system of equations by solving a bunch at the same time. My current algorithm involves using an LU decomposition function from the CULA Dense library that also has to switch back and forth between the GPU and the CPU to initialize and run the CULA functions. I would like to be able to call the CULA functions from my CUDA kernels so that I don't have to jump back to the CPU and copy the data back. This would also allow me to create multiple threads that are working on different data sets to be solving multiple systems concurrently. My question is can I call CULA functions from device functions? I know it's possible with CUBLAS and some of the other CUDA libraries.

谢谢!

推荐答案

简短的答案是否定的。该CULA库程序被设计成从主机code调用,而不是设备code。

The short answer is no. The CULA library routines are designed to be called from host code, not device code.

注意CULA有自己的支持论坛这里您可能会感兴趣。

Note that CULA have their own support forums here which you may be interested in.

这篇关于可以CULA程序从设备的内核叫什么名字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆