Tips for the installation of CUDA, Cudnn and tensorflow for windows 11

Today is 2023/10/11 and the content largely relates to the time of writing. 

1. check website: Build from source on Windows  |  TensorFlow , scroll down and check out this chart:

so from the graph we can know that the highest supporting version of python is 2.10.0, meaning that when installing anaconda or miniconda, we can try installing an older version corresponding to python 2.10.0. 

2. please be aware of the CUDA version and cuDNN version available, the 11.2 here basically indicates that any version higher and still belonging to the 11.x class is available. (12.x class will invoke errors such as naming errors). Download archive versions here: CUDA Toolkit Archive | NVIDIA Developer

By the way certain versions of CUDA do not support win 11, for instance the 11.2 in the above graph, so I installed 11.5. And even if you select the one supporting, the zip file naming may still include win10 instead of win11. 

3. visual studio 2022 is ok, no need to install visual studio 2017 just to fit the requirements. 

4. for cuDNN, select one that matches. If you wanna be conservative, note that 2 cudnn versions correspond to 1 CUDA version, and the release time should be basically 1 months later. One can deduce the corresponding cuDNN package by simple counting. Download archive versions here:

cuDNN Archive | NVIDIA Developer

5. do not use "pip install tensorflow", this will give you the tensorflow cpu version, and even if you install the gpu version, it will not show up in the conda list. So the correct way is to use "pip install tensorflow-gpu==2.10.0" or something like this, I don't remember exactly. 

6. If you happen to have used the "pip install tensorflow" and "pip install tensorflow-gpu", then do uninstall both: "pip uninstall tensorflow" "pip uninstall tensorflow-gpu" and then reinstall tensorflow-gpu solely. 

7. During the installing, I referred to youTube video   Setting Up CUDA, CUDNN, Keras, and TensorFlow on Windows 11 for GPU Deep Learning - YouTubeand CSDN article 【Windows11】Cuda和Cudnn详细安装教程-CSDN博客

There are conflicts between what I said and the youTube video, in that case, follow my instructions.  

8. It seems to be fine for cuda and cudnn not appearing in the conda list, as long as other methods of verification proves their existence. But I have come across cases where they do appear. 

Sure, here are some tips for installing EGSnrc on Ubuntu: 1. Update your system: Before starting the installation process, it's always a good idea to update your system. Open a terminal and run the following command: ``` sudo apt update && sudo apt upgrade -y ``` 2. Install required dependencies: EGSnrc requires some libraries and packages to be installed. Run the following command to install them: ``` sudo apt install build-essential gfortran libx11-dev libxt-dev libxpm-dev libxft-dev libxmu-dev libglu1-mesa-dev ``` 3. Download the EGSnrc distribution: Visit the EGSnrc website (https://nrc-cnrc.github.io/EGSnrc/) and download the latest distribution file (e.g., egsnrc_vn.mmm.tar.gz), where "vn" represents the version number and "mmm" represents the release number. 4. Extract the distribution: Open a terminal and navigate to the directory where you downloaded the distribution file. Use the following command to extract it: ``` tar -xvf egsnrc_vn.mmm.tar.gz ``` 5. Set up environment variables: In order to use EGSnrc, you need to set up some environment variables. Open your shell configuration file (e.g., ~/.bashrc) in a text editor and add the following lines at the end: ``` export EGS_HOME=/path/to/egsnrc export EGS_CONFIG=/path/to/egsnrc/HEN_HOUSE/specs/your_machine_name export PATH=$PATH:$EGS_HOME/bin/$my_machine ``` Replace "/path/to/egsnrc" with the actual path where you extracted the EGSnrc distribution, and "your_machine_name" with the appropriate name for your machine (e.g., linux). 6. Compile EGSnrc: Open a terminal and navigate to the EGSnrc directory. Run the following command to compile EGSnrc: ``` make ``` 7. Verify the installation: After the compilation process completes successfully, you can run some example simulations provided with EGSnrc to verify the installation. Refer to the EGSnrc documentation for instructions on running the examples. That's it! You have now successfully installed EGSnrc on Ubuntu. Remember to consult the EGSnrc documentation for further usage instructions and details.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值