官术网_书友最值得收藏!

Setting up our Python environment for GPU programming

With our compilers, IDEs, and the CUDA Toolkit properly installed on our system, we now can set up an appropriate Python environment for GPU programming. There are many options here, but we explicitly recommend that you work with the Anaconda Python Distribution. Anaconda Python is a self-contained and user-friendly distribution that can be installed directly in your user directory, and which does not require any administrator or sudo level system access to install, use, or update.

Keep in mind that Anaconda Python comes in two flavors—Python 2.7, and Python 3. Since Python 3 is currently not as well-supported for some of the libraries we will be using, we will be using Python 2.7 in this book, which still has a broad mainstream usage.

You can install Anaconda Python by going to https://www.anaconda.com/download, choosing your operating system, and then by choosing to download the Python 2.7 version of the distribution. Follow the instructions given on the Anaconda site to install the distribution, which is relatively straightforward. We can now set up our local Python installation for GPU programming.

We will now set up what is arguably the most important Python package for this book: Andreas Kloeckner's PyCUDA package.

主站蜘蛛池模板: 六安市| 焦作市| 涟源市| 忻州市| 根河市| 静海县| 青铜峡市| 洛浦县| 呈贡县| 鲁山县| 林口县| 曲麻莱县| 竹山县| 凉城县| 商城县| 千阳县| 宁波市| 延庆县| 洛阳市| 滦平县| 横峰县| 商洛市| 大冶市| 家居| 徐汇区| 江门市| 怀来县| 辰溪县| 五家渠市| 清新县| 雷州市| 新田县| 南岸区| 酒泉市| 朔州市| 南丰县| 卫辉市| 桐庐县| 阿拉善左旗| 乡城县| 正定县|