linux卸载cuda10.0,Ubuntu卸载cuda10.0

博主尝试在Ubuntu16.04上卸载占用大量存储空间的CUDA10.0,使用了`uninstall_cuda_10.0.pl`脚本来卸载,但遇到了命令未找到的问题。成功卸载后,尽管磁盘空间得到释放,但在运行TensorFlow时仍报错,提示CPU支持的指令集与TensorFlow编译的不匹配,并且CuDNN版本不兼容。
摘要由CSDN通过智能技术生成

Ubuntu 当初同时按照了 cuda9.0 和 cuda10.0,但因为是安装的是双系统windows10 + Ubuntu16.04,在C盘分割了 40G个给Ubuntu,安装2个cuda太过占存储空间,/dev/sda6 use%已经到90%多,需要删除一个多余的cuda10.0.

wu@wu-X555LF:~$cd /usr/local/cuda/bin

wu@wu-X555LF:/usr/local/cuda-10.0/bin$sudo uninstall_cuda_10.0.pl

sudo: uninstall_cuda_10.0.pl: command not found

在/usr/local/cuda/bin 目录下,有cuda 自带的卸载工具uninstall_cuda_10.0.pl

cd /usr/local/cuda/bin

sudo ./uninstall_cuda_10.0.pl

删除完cuda10.0,通过df -h查挂载情况:

wu@wu-X555LF:/usr/local/cuda-10.0/bin$ df -h

Filesystem      Size  Used Avail Use% Mounted on

udev            5.8G     0  5.8G   0% /dev

tmpfs           1.2G  9.4M  1.2G   1% /run

/dev/sda6        19G   14G  4.3G  76% /

tmpfs           5.9G   37M  5.8G   1% /dev/shm

tmpfs           5.0M  4.0K  5.0M   1% /run/lock

tmpfs           5.9G     0  5.9G   0% /sys/fs/cgroup

/dev/sda8       9.1G  5.8G  2.9G  68% /home

/dev/sdb1       256M   31M  226M  12% /boot/efi

tmpfs           1.2G   80K  1.2G   1% /run/user/1000

/dev/sda2       100G   77G   23G  78% /media/wu/22FC52F5FC52C329

执行情况,Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA,还是出现问题:

wu@wu-X555LF:~/YOLOv3_TensorFlow-master$ python test_single_image.py ./data/demo_data/messi.jpg

2019-07-20 22:55:38.464088: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA

2019-07-20 22:55:38.587955: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:898] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero

2019-07-20 22:55:38.588425: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1212] Found device 0 with properties:

name: GeForce 930M major: 5 minor: 0 memoryClockRate(GHz): 0.941

pciBusID: 0000:04:00.0

totalMemory: 1.96GiB freeMemory: 1.82GiB

2019-07-20 22:55:38.588448: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1312] Adding visible gpu devices: 0

2019-07-20 22:55:40.336327: I tensorflow/core/common_runtime/gpu/gpu_device.cc:993] Creating TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 1588 MB memory) -> physical GPU (device: 0, name: GeForce 930M, pci bus id: 0000:04:00.0, compute capability: 5.0)

2019-07-20 22:55:50.530431: E tensorflow/stream_executor/cuda/cuda_dnn.cc:378] Loaded runtime CuDNN library: 7500 (compatibility version 7500) but source was compiled with 7004 (compatibility version 7000).  If using a binary install, upgrade your CuDNN library to match.  If building from sources, make sure the library loaded at runtime matches a compatible version specified during compile configuration.

2019-07-20 22:55:50.531361: F tensorflow/core/kernels/conv_ops.cc:717] Check failed: stream->parent()->GetConvolveAlgorithms( conv_parameters.ShouldIncludeWinogradNonfusedAlgo(), &algorithms)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值