Can I run my jupyter notebook that contains seaborn code on GPU?

六月ゝ 毕业季﹏ 提交于 2019-12-20 03:52:45

问题


I have CUDA compatible GPU (Nvidia GeForce 1060) in my system. While analyzing a bigger dataset, I often have to use pair plot function of the seaborn library, it consumes a lot of time. 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?

I have watched a couple of videos on youtube that advises using numba python compiler and jit annotations, I want to know whether there is a generic setting that can be applied to to the anaconda framework so that, whatever I run on anaconda should utilize GPU.

I am aware that tensorflow and keras can be run on GPU.


回答1:


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?

In a word, no there is not. There is no way to run generic Python code or libraries on the GPU.

I am aware that tensorflow and keras can be run on GPU.

Neither tensorflow nor keras can be "run on" a GPU. They can accelerate parts of their computations with GPUs, but that process doesn't involve running a single line of Python on the GPU.



来源:https://stackoverflow.com/questions/56171211/can-i-run-my-jupyter-notebook-that-contains-seaborn-code-on-gpu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!