我可以在GPU上运行包含季节性代码的jupyter笔记本吗? [英] Can I run my jupyter notebook that contains seaborn code on GPU?

查看:107
本文介绍了我可以在GPU上运行包含季节性代码的jupyter笔记本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统中有兼容CUDA的GPU(Nvidia GeForce 1060).在分析更大的数据集时,我经常不得不使用seaborn库的对图函数,这会花费大量时间.有没有办法可以在GPU上运行我的整个笔记本.我的意思是,除了seaborn之外,我想在GPU上运行所有代码,这可能吗?

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?

我在YouTube上观看了几段建议使用numba python编译器和jit批注的视频,我想知道是否存在可以应用于anaconda框架的通用设置,因此无论我在anaconda上运行什么,都应该利用GPU.

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.

我知道tensorflow和keras可以在GPU上运行.

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

推荐答案

有没有一种方法可以在GPU上运行我的整个笔记本.我的意思是,除了seaborn之外,我想在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代码或库.

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

我知道tensorflowkeras可以在GPU上运行.

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

tensorflow和keras都不能在GPU上运行".他们可以使用GPU加速部分计算,但是该过程并不涉及在GPU上运行一行Python.

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.

这篇关于我可以在GPU上运行包含季节性代码的jupyter笔记本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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