问题
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
andkeras
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