编译Apollo时报错Could not find any cuda.h matching version ‘‘ in any subdirectory

2024-05-04 07:44

本文主要是介绍编译Apollo时报错Could not find any cuda.h matching version ‘‘ in any subdirectory,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

如果对执行Apollo的脚本docker/scripts/dev_start.sh生成的docker容器内的环境里的cuda版本作了修改,例如用比较新一点的cuda11.8代替了容器内默认安装的cuda11.1(卸载掉后安装新版本或者把新版本文件考本进容器后设置cuda相关环境变量),编译Apolllo时会报下面的错误:

(07:43:07) INFO: Repository local_config_cuda instantiated at:/apollo/WORKSPACE:20:20: in <toplevel>/apollo/tools/workspace.bzl:94:19: in apollo_repositories
Repository rule cuda_configure defined at:/apollo/third_party/gpus/cuda_configure.bzl:1276:33: in <toplevel>
(07:43:07) ERROR: An error occurred during the fetch of repository 'local_config_cuda':Traceback (most recent call last):File "/apollo/third_party/gpus/cuda_configure.bzl", line 1247, column 38, in _cuda_autoconf_impl_create_local_cuda_repository(repository_ctx)File "/apollo/third_party/gpus/cuda_configure.bzl", line 844, column 35, in _create_local_cuda_repositorycuda_config = _get_cuda_config(repository_ctx, find_cuda_config_script)File "/apollo/third_party/gpus/cuda_configure.bzl", line 537, column 30, in _get_cuda_configconfig = find_cuda_config(repository_ctx, find_cuda_config_script, ["cuda", "cudnn"])File "/apollo/third_party/gpus/cuda_configure.bzl", line 514, column 41, in find_cuda_configexec_result = _exec_find_cuda_config(repository_ctx, script_path, cuda_libraries)File "/apollo/third_party/gpus/cuda_configure.bzl", line 508, column 19, in _exec_find_cuda_configreturn execute(repository_ctx, [python_bin, "-c", decompress_and_execute_cmd])File "/apollo/tools/platform/common.bzl", line 166, column 13, in executefail(
Error in fail: Repository command failed
Could not find any cuda.h matching version '' in any subdirectory:'''include''include/cuda''include/*-linux-gnu''extras/CUPTI/include''include/cuda/CUPTI''local/cuda/extras/CUPTI/include'
of:'/usr/local/cuda-11.1'

需要修改.apollo.bazelrc里的cuda相关设置: 
#build --action_env CUDA_TOOLKIT_PATH="/usr/local/cuda-11.1"

build --action_env CUDA_TOOLKIT_PATH="/usr/local/cuda-11.8"
build --action_env TF_CUDA_COMPUTE_CAPABILITIES="3.7,5.2,6.0,6.1,7.0,7.2,7.5,8.6,8.7"

然后编译可以过了。 

这篇关于编译Apollo时报错Could not find any cuda.h matching version ‘‘ in any subdirectory的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!


原文地址:
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.chinasem.cn/article/958682

相关文章

IDEA编译报错“java: 常量字符串过长”的原因及解决方法

《IDEA编译报错“java:常量字符串过长”的原因及解决方法》今天在开发过程中,由于尝试将一个文件的Base64字符串设置为常量,结果导致IDEA编译的时候出现了如下报错java:常量字符串过长,... 目录一、问题描述二、问题原因2.1 理论角度2.2 源码角度三、解决方案解决方案①:StringBui

解决Spring运行时报错:Consider defining a bean of type ‘xxx.xxx.xxx.Xxx‘ in your configuration

《解决Spring运行时报错:Considerdefiningabeanoftype‘xxx.xxx.xxx.Xxx‘inyourconfiguration》该文章主要讲述了在使用S... 目录问题分析解决方案总结问题Description:Parameter 0 of constructor in x

解决IDEA使用springBoot创建项目,lombok标注实体类后编译无报错,但是运行时报错问题

《解决IDEA使用springBoot创建项目,lombok标注实体类后编译无报错,但是运行时报错问题》文章详细描述了在使用lombok的@Data注解标注实体类时遇到编译无误但运行时报错的问题,分析... 目录问题分析问题解决方案步骤一步骤二步骤三总结问题使用lombok注解@Data标注实体类,编译时

提示:Decompiled.class file,bytecode version如何解决

《提示:Decompiled.classfile,bytecodeversion如何解决》在处理Decompiled.classfile和bytecodeversion问题时,通过修改Maven配... 目录问题原因总结问题1、提示:Decompiled .class file,China编程 bytecode

maven 编译构建可以执行的jar包

💝💝💝欢迎莅临我的博客,很高兴能够在这里和您见面!希望您在这里可以感受到一份轻松愉快的氛围,不仅可以获得有趣的内容和知识,也可以畅所欲言、分享您的想法和见解。 推荐:「stormsha的主页」👈,「stormsha的知识库」👈持续学习,不断总结,共同进步,为了踏实,做好当下事儿~ 专栏导航 Python系列: Python面试题合集,剑指大厂Git系列: Git操作技巧GO

Maven创建项目中的groupId, artifactId, 和 version的意思

文章目录 groupIdartifactIdversionname groupId 定义:groupId 是 Maven 项目坐标的第一个部分,它通常表示项目的组织或公司的域名反转写法。例如,如果你为公司 example.com 开发软件,groupId 可能是 com.example。作用:groupId 被用来组织和分组相关的 Maven artifacts,这样可以避免

Windows环境利用VS2022编译 libvpx 源码教程

libvpx libvpx 是一个开源的视频编码库,由 WebM 项目开发和维护,专门用于 VP8 和 VP9 视频编码格式的编解码处理。它支持高质量的视频压缩,广泛应用于视频会议、在线教育、视频直播服务等多种场景中。libvpx 的特点包括跨平台兼容性、硬件加速支持以及灵活的接口设计,使其可以轻松集成到各种应用程序中。 libvpx 的安装和配置过程相对简单,用户可以从官方网站下载源代码

Golang test编译使用

创建文件my_test.go package testsimport "testing"func TestMy(t *testing.T) {t.Log("TestMy")} 通常用法: $ go test -v -run TestMy my_test.go=== RUN TestMyTestMy: my_test.go:6: TestMy--- PASS: TestMy (0.

Caused by: org.hibernate.MappingException: Could not determine type for: org.cgh.ssh.pojo.GoodsType,

MappingException:这个主要是类映射上的异常,Could not determine type for: org.cgh.ssh.pojo.GoodsType,这句话表示GoodsType这个类没有被映射到

C++/《C/C++程序编译流程》

程序的基本流程如图:   1.预处理        预处理相当于根据预处理指令组装新的C/C++程序。经过预处理,会产生一个没有宏定义,没有条件编译指令,没有特殊符号的输出文件,这个文件的含义同原本的文件无异,只是内容上有所不同。 读取C/C++源程序,对其中的伪指令(以#开头的指令)进行处理将所有的“#define”删除,并且展开所有的宏定义处理所有的条件编译指令,如:“#if”、“