Hi,
As you suggest,I try JetPack 4.6.1 + PyTorch v1.11.But thereβs compiled issue.
cmake β¦ -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc
β Found PythonInterp: /usr/bin/python (found version β2.7.17β)
β The C compiler identification is GNU 7.5.0
β The CXX compiler identification is GNU 7.5.0
β Check for working C compiler: /usr/bin/cc
β Check for working C compiler: /usr/bin/cc β works
β Detecting C compiler ABI info
β Detecting C compiler ABI info - done
β Detecting C compile features
β Detecting C compile features - done
β Check for working CXX compiler: /usr/bin/c++
β Check for working CXX compiler: /usr/bin/c++ β works
β Detecting CXX compiler ABI info
β Detecting CXX compiler ABI info - done
β Detecting CXX compile features
β Detecting CXX compile features - done
β Looking for pthread.h
β Looking for pthread.h - found
β Looking for pthread_create
β Looking for pthread_create - not found
β Looking for pthread_create in pthreads
β Looking for pthread_create in pthreads - not found
β Looking for pthread_create in pthread
β Looking for pthread_create in pthread - found
β Found Threads: TRUE
β Found CUDA: /usr/local/cuda (found version β10.2β)
β The CUDA compiler identification is NVIDIA 10.2.300
β Check for working CUDA compiler: /usr/local/cuda/bin/nvcc
β Check for working CUDA compiler: /usr/local/cuda/bin/nvcc β works
β Detecting CUDA compiler ABI info
β Detecting CUDA compiler ABI info - done
β Caffe2: CUDA detected: 10.2
β Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
β Caffe2: CUDA toolkit directory: /usr/local/cuda
β Caffe2: Header version is: 10.2
β Found CUDNN: /usr/lib/aarch64-linux-gnu/libcudnn.so
β /usr/local/cuda/lib64/libnvrtc.so shorthash is 7d272a04
β Autodetected CUDA architecture(s): 7.2
β Added CUDA NVCC flags for: -gencode;arch=compute_72,code=sm_72
β Found Torch: /home/lc/.local/lib/python3.6/site-packages/torch/lib/libtorch.so
β Found OpenCV: /usr (found version β4.1.1β)
β Configuring done
β Generating done
β Build files have been written to: /home/lc/cc/libtorch_train_slow_in_xavier/build
lc@lc-desktop:~/cc/libtorch_train_slow_in_xavier/build$ make
Scanning dependencies of target main
[ 50%] Building CXX object CMakeFiles/main.dir/main.cpp.o
In file included from /usr/include/c++/7/bits/stl_algobase.h:59:0,
from /usr/include/c++/7/memory:62,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:4,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/aarch64-linux-gnu/c++/7/bits/c++config.h:250:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
/usr/include/aarch64-linux-gnu/c++/7/bits/c++config.h:438:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:59:0,
from /usr/include/c++/7/memory:62,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:4,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/aarch64-linux-gnu/c++/7/bits/c++config.h:563:3: error: operator β&&β has no right operand
&& _GLIBCXX_USE_DUAL_ABI && __cpp_transactional_memory >= 201505L
^~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/memory:62,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:4,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:107:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/bits/unique_ptr.h:37,
from /usr/include/c++/7/memory:80,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:4,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:56:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
In file included from /usr/include/c++/7/string:53:0,
from /usr/include/c++/7/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/bits/unique_ptr.h:37,
from /usr/include/c++/7/memory:80,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:4,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/bits/basic_string.tcc:50:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
In file included from /usr/include/c++/7/array:39:0,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/bits/unique_ptr.h:37,
from /usr/include/c++/7/memory:80,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:4,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/stdexcept:46:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
/usr/include/c++/7/stdexcept:127:28: error: operator β||β has no left operand
#if _GLIBCXX_USE_CXX11_ABI || _GLIBCXX_DEFINE_STDEXCEPT_COPY_OPS
^~
/usr/include/c++/7/stdexcept:211:28: error: operator β||β has no left operand
#if _GLIBCXX_USE_CXX11_ABI || _GLIBCXX_DEFINE_STDEXCEPT_COPY_OPS
^~
In file included from /usr/include/c++/7/bits/ios_base.h:41:0,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:228,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/bits/locale_classes.h:354:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
In file included from /usr/include/c++/7/bits/ios_base.h:46:0,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:228,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/system_error:91:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
In file included from /usr/include/c++/7/ios:42:0,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:228,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/bits/ios_base.h:230:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
/usr/include/c++/7/bits/ios_base.h:254:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
In file included from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:228:0,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/sstream:297:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
In file included from /usr/include/c++/7/sstream:826:0,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:228,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/bits/sstream.tcc:92:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
In file included from /usr/include/c++/7/locale:41:0,
from /usr/include/c++/7/iomanip:43,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/util/logging_is_not_google_glog.h:8,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/util/Logging.h:2,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/TensorImpl.h:19,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/GeneratorImpl.h:12,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/core/Generator.h:22,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/bits/locale_facets_nonio.h:719:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
/usr/include/c++/7/bits/locale_facets_nonio.h:1567:33: error: operator β&&β has no right operand
&& _GLIBCXX_USE_CXX11_ABI == 0
^~
/usr/include/c++/7/bits/locale_facets_nonio.h:1590:33: error: operator β&&β has no right operand
&& _GLIBCXX_USE_CXX11_ABI == 0
^~
/usr/include/c++/7/bits/locale_facets_nonio.h:1712:33: error: operator β&&β has no right operand
&& _GLIBCXX_USE_CXX11_ABI == 0
^~
/usr/include/c++/7/bits/locale_facets_nonio.h:1747:33: error: operator β&&β has no right operand
&& _GLIBCXX_USE_CXX11_ABI == 0
^~
In file included from /usr/include/c++/7/bits/locale_facets_nonio.h:2013:0,
from /usr/include/c++/7/locale:41,
from /usr/include/c++/7/iomanip:43,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/util/logging_is_not_google_glog.h:8,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/util/Logging.h:2,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/TensorImpl.h:19,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/c10/core/GeneratorImpl.h:12,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/core/Generator.h:22,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/bits/locale_facets_nonio.tcc:352:33: error: operator β&&β has no right operand
&& _GLIBCXX_USE_CXX11_ABI == 0
^~
/usr/include/c++/7/bits/locale_facets_nonio.tcc:564:33: error: operator β&&β has no right operand
&& _GLIBCXX_USE_CXX11_ABI == 0
^~
In file included from /usr/include/c++/7/list:63:0,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/core/dispatch/OperatorEntry.h:17,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:6,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/jit/runtime/operator.h:6,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/jit/ir/ir.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/jit/api/function_impl.h:4,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/jit/api/method.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/jit/api/object.h:6,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/jit/frontend/tracer.h:9,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/autograd/generated/variable_factories.h:12,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/bits/stl_list.h:326:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
/usr/include/c++/7/bits/stl_list.h:349:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
/usr/include/c++/7/bits/stl_list.h:1886:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
/usr/include/c++/7/bits/stl_list.h:1955:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
In file included from /usr/include/c++/7/list:64:0,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/core/dispatch/OperatorEntry.h:17,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:6,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/jit/runtime/operator.h:6,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/jit/ir/ir.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/jit/api/function_impl.h:4,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/jit/api/method.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/jit/api/object.h:6,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/jit/frontend/tracer.h:9,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/autograd/generated/variable_factories.h:12,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:7,
from /home/lc/.local/lib/python3.6/site-packages/torch/include/torch/script.h:3,
from /home/lc/cc/libtorch_train_slow_in_xavier/main.cpp:1:
/usr/include/c++/7/bits/list.tcc:178:27: error: #if with no expression
#if _GLIBCXX_USE_CXX11_ABI
^
CMakeFiles/main.dir/build.make:62: recipe for target βCMakeFiles/main.dir/main.cpp.oβ failed
make[2]: *** [CMakeFiles/main.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target βCMakeFiles/main.dir/allβ failed
make[1]: *** [CMakeFiles/main.dir/all] Error 2
Makefile:83: recipe for target βallβ failed
make: *** [all] Error 2