The command for the IDLE shell to import the tensorflow package is as follows: # importing the tensorflow package import tensorflow as tf This will check that Tensorflow has been installed (as you can import it). At the prompt (denoted by ‘>’), import the Tensorflow package. A Python window should appear labelled Python 3.6.x Shell. Go to the start menu in windows and search for the IDE called ‘idle’, which will be installed as part of your python installation if you selected as I did at Step 6. Step 8: Test Installation of TensorFlow and its access to GPU This opens up a window called “System Properties” (Fig 17), at which point the “Environment Variables” button should be chosen. In Windows 10, the Environment Variables can be found by choosing:Ĭontrol Panel -> System and Security-> System-> Advanced System settings. Step 5.3: Checking CUDA environment variables are set in Windowsįinally, the instructions at Nvidia direct that you ensure that the CUDA environment variable has previously been set up, as follows: Variable Name: CUDA_PATH Variable Value: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0 lib file cudnn.lib can be found in the downloaded cuDNN path: \cudnn-9.0-windows10-圆4-v7.5.0.56\cuda\lib\圆4\cudnn.libĬopy cudnn.lib directly into the CUDA folder with the following path: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib\圆4\ You can copy the cudnn64_7.dll file directly into the CUDA folder’s bin folder path (note: you don’t need to create any new subfolders): C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\Īs with the cudnn64_7.dll file above, after downloading and unzipping the cuDNN folder, the header file cudnn64.h can be found in the path: \cudnn-9.0-windows10-圆4-v7.5.0.56\cuda\ include\cudnn.hĪgain, assuming that you installed CUDA 9.0 into the default path as I did at Step 2.3, copy cudnn.h directly into the CUDA folder with the following path (no new subfolders are necessary): C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include\ These are cudnn64_7.dll, cudnn.h and :Ĭudnn64_7.dll can be found in the following path within the downloaded cuDNN files: \cudnn-9.0-windows10-圆4-v7.5.0.56\cuda\bin\cudnn64_7.dllĪssuming that you installed CUDA 9.0 to its default path (as I did at Step 2.3), namely the following default path: C:\Program Files\NVIDA GPU Computing Toolkit\CUDA\v9.0 There are three files in the unzipped cuDNN folder subdirectories which are to be copied into the CUDA Toolkit directories. I unzipped the cuDNN “.zip” file where I downloaded it, hence the unzipped folder structure which will contain the required cuDNN files is now:- \cudnn-9.0-windows10-圆4-v7.5.0.56\ In the instructions below, I refer to the folder path “ C:\Users\jo\Documents\cuDNN_downloads\” (referred to just above) as “ ”, such that the zip file is now in the path: \cudnn-9.0-windows10-圆4-v7.5.0.56.zip zip file named above into a folder which has the following path on my PC (your path will no doubt be different). Instructions at Nvidia provide support for windows cuDNN installation, as do instructions on the Tensorflow website I have reproduced these instructions in distilled form, based on my implementation of them. Step 5.2: Unzipping cuDNN files and copying to CUDA folders Choosing cuDNN version 7.4.2 enables the download as a zip file named as follows: cudnn-9.0-windows10-圆4-v7.zip Fig 16: cuDNN download page with selection of cuDNN v.7.4Īs I have downloaded CUDA 9.0, the corresponding version of cuDNN is version 7.4.2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |