热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

在Windows上使用Python3.8.5编译支持CUDA11和cuDNN8.0.2的TensorFlow2.3,并提供编译后的文件下载链接

本文详细介绍了在Windows操作系统上使用Python3.8.5编译支持CUDA11和cuDNN8.0.2的TensorFlow2.3的步骤。文章不仅提供了详细的编译指南,还分享了编译后的文件下载链接,方便用户快速获取所需资源。此外,文中还涵盖了常见的编译问题及其解决方案,确保用户能够顺利进行编译和安装。

基本参照我的这篇文章:《Windows下编译带CUDA 10.2的TensorFlow 2.2(Python3.8.2,附编译结果下载)》,有些地方有所改动,现列出来:

D:\tensorflow-2.3.0>python ./configure.py

You have bazel 3.4.1 installed.

Please specify the location of python. [Default is C:\Python38\python.exe]:

Found possible Python library paths:

C:\Python38\lib\site-packages

Please input the desired Python library path to use. Default is [C:\Python38\lib\site-packages]

Do you wish to build TensorFlow with ROCm support? [y/N]:

No ROCm support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]: y

CUDA support will be enabled for TensorFlow.

Found CUDA 11.0 in:

D:/CUDA11/lib/x64

D:/CUDA11/include

Found cuDNN 8 in:

D:/CUDA11/lib/x64

D:/CUDA11/include

Please specify a list of comma-separated CUDA compute capabilities you want to build with.

You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Each capability can be specified as "x.y" or "compute_xy" to include both virtual and binary GPU code, or as "sm_xy" to only include the binary code.

Please note that each additional compute capability significantly increases your build time and binary size, and that TensorFlow only supports compute capabilities >= 3.5 [Default is: 3.5,7.0]: 3.5,3.7,5.0,5.2,6.0,6.1,7.0,7.5,8.0

Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is /arch:AVX]: /arch:AVX2

Would you like to override eigen strong inline for some C++ compilation to reduce the compilation time? [Y/n]:

Eigen strong inline overridden.

Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]:

Not configuring the WORKSPACE for Android builds.

Preconfigured Bazel build configs. You can use any of the below by adding "--config&#61;<>" to your build command. See .bazelrc for more details.

--config&#61;mkl # Build with MKL support.

--config&#61;monolithic # Config for mostly static monolithic build.

--config&#61;ngraph # Build with Intel nGraph support.

--config&#61;numa # Build with NUMA support.

--config&#61;dynamic_kernels # (Experimental) Build kernels into separate shared objects.

--config&#61;v2 # Build TensorFlow 2.x instead of 1.x.

Preconfigured Bazel build configs to DISABLE default on features:

--config&#61;noaws # Disable AWS S3 filesystem support.

--config&#61;nogcp # Disable GCP support.

--config&#61;nohdfs # Disable HDFS support.

--config&#61;nonccl # Disable NVIDIA NCCL support.

编译命令稍后补充&#xff0c;先甩成品链接&#xff1a;

pip安装包&#xff1a;tensorflow-2.3.0-cp38-cp38-win_amd64.whl

pip安装包流量管家版&#xff1a;tensorflow-2.3.0-cp38-cp38-win_amd64.rar

pip安装包&#xff08;MKL&#xff09;&#xff1a;tensorflow-mkl-2.3.0-cp38-cp38-win_amd64.whl

pip安装包流量管家版&#xff1a;&#xff08;MKL&#xff09;&#xff1a;tensorflow-mkl-2.3.0-cp38-cp38-win_amd64.rar

pip安装包的流量管家版&#xff0c;解压后再用ZIP打包&#xff0c;改后缀为“whl”即可正常安装。

C库&#xff1a;libtensorflow-2.3.0.rar

C库&#xff08;MKL&#xff09;&#xff1a;libtensorflow-2.3.0-mkl.rar



推荐阅读
  • Explore how Matterverse is redefining the metaverse experience, creating immersive and meaningful virtual environments that foster genuine connections and economic opportunities. ... [详细]
  • Explore a common issue encountered when implementing an OAuth 1.0a API, specifically the inability to encode null objects and how to resolve it. ... [详细]
  • 本文详细探讨了Java中的24种设计模式及其应用,并介绍了七大面向对象设计原则。通过创建型、结构型和行为型模式的分类,帮助开发者更好地理解和应用这些模式,提升代码质量和可维护性。 ... [详细]
  • 本文深入探讨了 Java 中的 Serializable 接口,解释了其实现机制、用途及注意事项,帮助开发者更好地理解和使用序列化功能。 ... [详细]
  • ImmutableX Poised to Pioneer Web3 Gaming Revolution
    ImmutableX is set to spearhead the evolution of Web3 gaming, with its innovative technologies and strategic partnerships driving significant advancements in the industry. ... [详细]
  • 本文详细介绍了Java中org.w3c.dom.Text类的splitText()方法,通过多个代码示例展示了其实际应用。该方法用于将文本节点在指定位置拆分为两个节点,并保持在文档树中。 ... [详细]
  • 本文详细介绍了macOS系统的核心组件,包括如何管理其安全特性——系统完整性保护(SIP),并探讨了不同版本的更新亮点。对于使用macOS系统的用户来说,了解这些信息有助于更好地管理和优化系统性能。 ... [详细]
  • 本文详细介绍了Java中org.neo4j.helpers.collection.Iterators.single()方法的功能、使用场景及代码示例,帮助开发者更好地理解和应用该方法。 ... [详细]
  • 本文介绍了如何使用 Spring Boot DevTools 实现应用程序在开发过程中自动重启。这一特性显著提高了开发效率,特别是在集成开发环境(IDE)中工作时,能够提供快速的反馈循环。默认情况下,DevTools 会监控类路径上的文件变化,并根据需要触发应用重启。 ... [详细]
  • DNN Community 和 Professional 版本的主要差异
    本文详细解析了 DotNetNuke (DNN) 的两种主要版本:Community 和 Professional。通过对比两者的功能和附加组件,帮助用户选择最适合其需求的版本。 ... [详细]
  • 本文深入探讨了如何通过调整InnoDB的关键配置参数来优化MySQL的随机IO性能,涵盖了缓存、日志文件、预读机制等多个方面,帮助读者全面提升数据库系统的性能。 ... [详细]
  • MQTT技术周报:硬件连接与协议解析
    本周开发笔记重点介绍了在新项目中使用MQTT协议进行硬件连接的技术细节,涵盖其特性、原理及实现步骤。 ... [详细]
  • UNP 第9章:主机名与地址转换
    本章探讨了用于在主机名和数值地址之间进行转换的函数,如gethostbyname和gethostbyaddr。此外,还介绍了getservbyname和getservbyport函数,用于在服务器名和端口号之间进行转换。 ... [详细]
  • 本文详细介绍了 Apache Jena 库中的 Txn.executeWrite 方法,通过多个实际代码示例展示了其在不同场景下的应用,帮助开发者更好地理解和使用该方法。 ... [详细]
  • 2023年京东Android面试真题解析与经验分享
    本文由一位拥有6年Android开发经验的工程师撰写,详细解析了京东面试中常见的技术问题。涵盖引用传递、Handler机制、ListView优化、多线程控制及ANR处理等核心知识点。 ... [详细]
author-avatar
wszr12345597
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有