我的系统中有 CUDA 兼容 GPU (Nvidia GeForce 1060)。在分析更大的数据集时,我经常需要使用seaborn库的pairplot函数,它消耗了大量的时间。有没有办法可以在 GPU 上运行我的整个笔记本。我的意思是,除了seaborn,我想在GPU上运行我的所有代码,这可能吗?
我在 youtube 上观看了几个建议使用 numba python 编译器和 jit 注释的视频,我想知道是否有一个通用设置可以应用于 anaconda 框架,这样,无论我在 anaconda 上运行什么,都应该利用 GPU。
我知道tensorflow和keras可以在GPU上运行。
最佳答案
Is there a way I can run my entire notebook on GPU. I mean, apart from seaborn, I want to run all of my code on GPU, is it possible?
总而言之,不,没有。无法在 GPU 上运行通用 Python 代码或库。
I am aware that
tensorflow
andkeras
can be run on GPU.
tensorflow 和 keras 都不能在 GPU 上“运行”。他们可以使用 GPU 加速部分计算,但该过程不涉及在 GPU 上运行一行 Python。
关于machine-learning - 我可以在 GPU 上运行包含 seaborn 代码的 jupyter 笔记本吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56171211/