惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

AI
AI
小众软件
小众软件
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
Apple Machine Learning Research
Apple Machine Learning Research
F
Fortinet All Blogs
罗磊的独立博客
爱范儿
爱范儿
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
D
Docker
C
CXSECURITY Database RSS Feed - CXSecurity.com
Spread Privacy
Spread Privacy
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
G
GRAHAM CLULEY
A
About on SuperTechFans
C
Cisco Blogs
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog
Project Zero
Project Zero
V
V2EX
K
Kaspersky official blog
P
Privacy International News Feed
博客园 - 叶小钗
I
Intezer
T
Threatpost
The GitHub Blog
The GitHub Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Vulnerabilities – Threatpost
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
Microsoft Azure Blog
Microsoft Azure Blog
N
Netflix TechBlog - Medium
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 【当耐特】
P
Proofpoint News Feed
L
Lohrmann on Cybersecurity
S
Schneier on Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Full Disclosure
The Cloudflare Blog
P
Palo Alto Networks Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Tenable Blog

博客园 - Eric-Liu

Docker Desktop for Windows ChatGLM本地部署 Llama本地部署 StableDiffusion本地部署 Python实现视频桌面 基于BERT进行文本分类 Python实现Windows下的视频壁纸 启用VTX技术支持启动android的虚拟机 - 报错 新机上岗 Core i7-4790 @ 3.60GHz 四核 / 16 GB ( 金士顿 DDR3 1866MHz ) / GeForce GTX 970 ( 4 GB / 七彩虹 ) VBS发送邮件-1 Oracle数据库编译存储过程挂死问题解决办法 Windows 7丢失用户、密码解决办法-我体验了! 批处理实现从Excel导入Oracle Windows Gadget开发之运行外部程序 - Eric-Liu - 博客园 VirtualBox自动重启之谜 拆分五笔字库,提高导入到google拼音的速度 写个设置命令的VBS脚本工具。 - Eric-Liu - 博客园 CMD下一个命令遍历目录删除相同垃圾文件 SQL注入之脚本篇-FOR ACCESS数据库
Python-CUDA-cuDNN安装
Eric-Liu · 2023-08-27 · via 博客园 - Eric-Liu

python安装
http://python.p2hp.com/downloads/windows/index.html

python3.10.6
https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe


python, tensorflow-gpu, cuda, cudnn版本兼容关系
https://blog.csdn.net/pollotui/article/details/125064281

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/

[repository1]
name = qinghua
url = https://pypi.tuna.tsinghua.edu.cn/simple/
trusted-host = pypi.tuna.tsinghua.edu.cn

[repository2]
name = alibaba
url = https://mirrors.aliyun.com/pypi/simple
trusted-host = mirrors.aliyun.com

安装显卡驱动
https://www.nvidia.com/Download/index.aspx?lang=en-us
官方匹配到的驱动版本号:536.99-desktop-win10-win11-64bit-international-dch-whql
下载后安装

安装CUDA
在Nvida系统信息中查看驱动版本,在组件页签中查看CUDA兼容版本号 12.2.135
https://developer.nvidia.cn/cuda-toolkit-archive
CUDA12.2下载地址:https://developer.nvidia.cn/cuda-downloads
CUDA11.8下载地址:https://developer.nvidia.cn/cuda-11-8-0-download-archive

安装cudnn(SDK)
https://developer.nvidia.com/rdp/cudnn-archive
下载对应cuda版本12.x的cudnn版本包
将解压的bin, include, lib三个文件夹分别复制到cuda目录中

验证cudnn安装成功
CUDA\v12.2\extras\demo_suite\deviceQuery.exe
CUDA\v12.2\extras\demo_suite\bandwidthTest.exe

=======================================

## 安装CUDA & cuDnn
CUDA下载地址:https://developer.nvidia.com/cuda-toolkit-archive
cuDnn下载地址:https://developer.nvidia.com/rdp/cudnn-download

## 安装GPU版本的Torch
curl -o cuda_11.0.2_451.48_win10.exe https://developer.download.nvidia.cn/compute/cuda/11.0.2/local_installers/cuda_11.0.2_451.48_win10.exe
conda install pytorch torchvision torchaudio cudatoolkit=11.8 -c pytorch

### 一定要使用以下命令安装,直接下载whl文件安装不行(折腾了一天的教训),可以先安装本地,再执行以下命令,这样不用单独下载
pip uninstall pytorch torchvision torchaudio

pip install "D:\AI\NvidaDrivers\torch-2.0.1+cu118-cp39-cp39-win_amd64.whl"
pip install torchvision==0.10.1+cu118 -f https://download.pytorch.org/whl/torch_stable.html
pip install torchaudio


### 测试pytorch是否能使用GPU
python -c "import torch; print(torch.cuda.is_available())"
python -c "import torch; print(torch.version.cuda);print(torch.__version__);print(torch.cuda.device_count())"


## 安装GPU版本的Tensorflow
pip install tensorflow-gpu==2.5.0
conda install cudatoolkit==11.8


### 测试tensorflow是否能使用GPU
python -c "import tensorflow as tf; print(tf.test.is_gpu_available());"


## windows docker容器运行
docker run -itd --gpus all 584aa0058283


## 判断驱动安装情况
1、查看cuda版本
cat /usr/local/cuda/version.txt

2、查看cudnn版本
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2