当前位置:网站首页>查看 CUDA cudnn 版本 & 测试 cuda 和 cudnn 有效性「建议收藏」
查看 CUDA cudnn 版本 & 测试 cuda 和 cudnn 有效性「建议收藏」
2022-08-10 11:50:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
https://medium.com/@changrongko/nv-how-to-check-cuda-and-cudnn-version-e05aa21daf6c
cuda 版本 cat /usr/local/cuda/version.txt
cudnn 版本 cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
测试 系统 cuda 和 cudnn 有效性
test_cuda.py
import torch
print(2.0)
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
# Assume that we are on a CUDA machine, then this should print a CUDA device:
print(device)
x = torch.Tensor([2.1])
xx = x.cuda()
print(xx)
# CUDNN TEST
from torch.backends import cudnn
print('cudann is ' + str(cudnn.is_acceptable(xx)))
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/129961.html原文链接:https://javaforall.cn
边栏推荐
- LT8911EXB MIPI CSI/DSI转EDP信号转换
- Analysis of the name matching process between the LCD driver and the device (Tiny4412)
- 因为找不到lombok而找不到符号log
- The 6th "Blue Hat Cup" National College Student Network Security Skills Competition Semi-Final Part WriteUp
- Highways「建议收藏」
- three.js blur glass effect
- LeetCode 83. Remove Duplicate Elements in Sorted List
- 郭晶晶家的象棋私教,好家伙是个机器人
- LeetCode 138. 复制带随机指针的链表
- LeetCode 92. Reverse Linked List II
猜你喜欢
十八、一起学习Lua 调试(Debug)
StarRocks on AWS Review | Data Everywhere Series Event Shenzhen Station ended successfully
爱可可AI前沿推介(8.10)
网络基础(第一节)
制品库是什么?
16. Getting Started with Pytorch Lightning
一文详解 implementation api embed
吃透Chisel语言.36.Chisel实战之以FIFO为例(一)——FIFO Buffer和Bubble FIFO的Chisel实现
You have a Doubaqiong thesaurus, please check it
How many constants and data types do you remember?
随机推荐
如何让别人看不懂你的 JS 代码?把你当大佬!
Threshold-based filtering buffer management scheme in a shared buffer packet switch论文核心部分
加密游戏:游戏的未来
The 6th "Blue Hat Cup" National College Student Network Security Skills Competition Semi-Final Part WriteUp
LT8911EXB MIPI CSI/DSI转EDP信号转换
LeetCode 86. 分隔链表
Excel函数公式大全—LOOKUP函数
可视化服务编排在金融APP中的实践
Can CLIP also do segmentation tasks?The University of Göttingen proposed a model CLIPSeg that uses text and image prompts to perform three segmentation tasks at the same time, draining CLIP capabiliti
郭晶晶家的象棋私教,好家伙是个机器人
LeetCode 25. A set of K flipped linked lists
被面试官问到消息队列的丢失、重复与积压问题该如何回答
LeetCode 61. Rotating linked list
Network sockets (UDP and TCP programming)
LeetCode 24. 两两交换链表中的节点
Highways「建议收藏」
LeetCode 92. 反转链表 II
CodeForces - 628D (digital dp)
用低代码驱动IT现代化
LeetCode 92. Reverse Linked List II