Jetson安装pycuda报错

在Xavier nx上安装cuda和pycuda遇到的问题记录:

①. src/cpp/cuda.hpp:14:18: fatal error: cuda.h: No such file or directory

因为是arm架构很多包都要特意下载,我安装了Jetson的Jetpack包中的cuda,采取离线安装方式,没报任何错误。以为安装正确的,结果安装pycuda时编译报错。网上很多同学考虑的是环境变量问题,我也被思维定势了,后来转过头来仔细检查cuda,发现少一些文件,于是从另一个板子上复制了cuda-10.2过来,得到解决。
注意检查两个问题:
1、cuda是否完全安装好
2、环境变量是否配置
3、可以重装一下cuda apt-get install cuda-toolkit-10-2
②. bpl-subset/bpl_subset/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
需要安装python3.6和python3.6-dev。去pkgs.org上下载对应版本包即可

③. 未定位到的错误
错误如下:

 src/wrapper/mempool.cpp:235:8:   required from ‘void {
   anonymous}::expose_memory_pool(Wrapper&) [with Wrapper = pycudaboost::python::class_<{
   anonymous}::context_dependent_memory_pool<{
   anonymous}::device_allocator>, pycudaboost::noncopyable_::noncopyable, pycudaboost::shared_ptr<{
   anonymous}::context_dependent_memory_pool<{
   anonymous}::device_allocator

你可能感兴趣的:(环境搭建,Xavier,nx,cuda)