From 6d65cde15438ba77975de0cf3187421e8b309f6e Mon Sep 17 00:00:00 2001 From: Brian Tuomanen Date: Thu, 13 Feb 2020 19:11:06 -0800 Subject: [PATCH] Create launch-python-cuda-environment.bat --- Chapter02/launch-python-cuda-environment.bat | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Chapter02/launch-python-cuda-environment.bat diff --git a/Chapter02/launch-python-cuda-environment.bat b/Chapter02/launch-python-cuda-environment.bat new file mode 100644 index 0000000..d7bfdff --- /dev/null +++ b/Chapter02/launch-python-cuda-environment.bat @@ -0,0 +1,8 @@ +REM This batch script will set up an appropriate Python environment for CUDA GPU programming under Windows. +REM The last line launches a CMD prompt. This can be any environment however. +REM If you wish to use an IDE such as Spyder or Jupyter Notebook, just change the last line to "spyder" +REM or "jupyter-notebook". + +call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 +call "C:\Users\%username%\Anaconda3\Scripts\activate.bat" C:\Users\%username%\Anaconda3 +cmd