Skip to content

Commit 35c102a

Browse files
committed
2 parents d4d4ced + 342e9f6 commit 35c102a

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

README.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,3 +912,86 @@ python stock_prediction_deep_learning.py
912912

913913
As I mentioned before, I'm using a GPU to ramp up my testing. As my laptop has a nvidia geforce card, I installed CUDA to make use of its GPU capabilities. Depending on your tensorflow version you'll need a version or another.
914914
Here is the link: https://developer.nvidia.com/cuda-11.0-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal
915+
916+
You can do from your conda prompt:
917+
918+
```bash
919+
(base) >conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
920+
Collecting package metadata (current_repodata.json): done
921+
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
922+
Collecting package metadata (repodata.json): done
923+
Solving environment: done
924+
925+
926+
==> WARNING: A newer version of conda exists. <==
927+
current version: 4.10.3
928+
latest version: 4.14.0
929+
930+
Please update conda by running
931+
932+
$ conda update -n base -c defaults conda
933+
934+
935+
936+
## Package Plan ##
937+
938+
environment location: C:\Users\jordi\anaconda3
939+
940+
added / updated specs:
941+
- cudatoolkit=11.2
942+
- cudnn=8.1.0
943+
944+
945+
The following packages will be downloaded:
946+
947+
package | build
948+
---------------------------|-----------------
949+
conda-4.12.0 | py39hcbf5309_0 1.0 MB conda-forge
950+
cudatoolkit-11.2.2 | h933977f_10 879.9 MB conda-forge
951+
cudnn-8.1.0.77 | h3e0f4f4_0 610.8 MB conda-forge
952+
python_abi-3.9 | 2_cp39 4 KB conda-forge
953+
------------------------------------------------------------
954+
Total: 1.46 GB
955+
956+
The following NEW packages will be INSTALLED:
957+
958+
cudatoolkit conda-forge/win-64::cudatoolkit-11.2.2-h933977f_10
959+
cudnn conda-forge/win-64::cudnn-8.1.0.77-h3e0f4f4_0
960+
python_abi conda-forge/win-64::python_abi-3.9-2_cp39
961+
962+
The following packages will be UPDATED:
963+
964+
conda pkgs/main::conda-4.10.3-py39haa95532_0 --> conda-forge::conda-4.12.0-py39hcbf5309_0
965+
966+
967+
Proceed ([y]/n)? y
968+
969+
970+
Downloading and Extracting Packages
971+
conda-4.12.0 | 1.0 MB | ############################################################################ | 100%
972+
python_abi-3.9 | 4 KB | ############################################################################ | 100%
973+
cudnn-8.1.0.77 | 610.8 MB | ############################################################################ | 100%
974+
cudatoolkit-11.2.2 | 879.9 MB | ############################################################################ | 100%
975+
Preparing transaction: done
976+
Verifying transaction: done
977+
Executing transaction: / "By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html"
978+
979+
| "By downloading and using the cuDNN conda packages, you accept the terms and conditions of the NVIDIA cuDNN EULA - https://docs.nvidia.com/deeplearning/cudnn/sla/index.html"
980+
981+
done
982+
```
983+
984+
If you run the project after this, the GPU should be correctly picked up:
985+
986+
![image](https://user-images.githubusercontent.com/7347994/190925144-a1b5d934-683f-4d43-a083-fd7c927ed6c5.png)
987+
988+
# 6) Graphviz installation
989+
990+
if you see this message, then you need to install GraphViz library:
991+
992+
```bash
993+
You must install pydot (`pip install pydot`) and install graphviz (see instructions at https://graphviz.gitlab.io/download/) for plot_model/model_to_dot to work.
994+
```
995+
996+
- https://graphviz.gitlab.io/download/
997+

0 commit comments

Comments
 (0)