任务:
1)使用AI station跑代码
2)使用TensorFlow2.4.0
经历:
1)装anaconda,链接1,链接2。
最后放弃使用anaconda,因为不需要
2)学会安装cuda10.0 11.0以及对应的cudnn,配置path,更换cuda
发现TensorFlow2.0对应cuda10.0 之后2.1 2.2 2.3 对应cuda10.1 TensorFlow2.4.0对应11.0
cuda下载:https://developer.nvidia.com/cuda-toolkit-archive
cudnn下载:https://developer.nvidia.com/zh-cn/cudnn 需注册
3)最后的最后
-----出现“Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2”错误,是因为为了最大限度的适应各种CPU,pip默认安装的tensorflow版本没有对AVX指令集进行支持。程序用gpu跑步了,加载完数据集就结束了,使用cpu就可以慢慢地跑
我选择放弃了,使用google colab或者实验室机器吧,Windows更适合我
问题:
1)anaconda有自己的python.exe,linux系统有自己的python.exe,用命令行python进入编译器怎么转换呢?
2)服务器驱动只有10.1,应该无法更新驱动
CUDA driver version is insufficient for CUDA runtime version
驱动用nvidia-smi查看
cuda版本用nvcc -V查看
最后放弃使用cuda11.0
留着下次Windows使用:
Windows10下安装tensorflow-gpu(2.2.0)安装教程(避坑+保姆式教学)