The following error occurred when compiling pytorch by Jetson:
/usr/include/c++/7/cmath: In static member function ‘static scalar_t at::native::div_floor_kernel_cuda(at::TensorIterator&)::<lambda()>::<lambda()>::<lambda(scalar_t, scalar_t)>::_FUN(scalar_t, scalar_t)’:
/usr/include/c++/7/cmath:1302:38: internal compiler error: Segmentation fault
{ return __builtin_copysignf(__x, __y); }
This is because compiling STD::copysign()
is too expensive for the Jetson platform.
There are two solutions:
1. upgrade pytorch to version 1.9. Pytorch 1.9 uses the C10::CUDA::compat::copysign()
function instead of the STD::copysign()
function.
2. Submit and modify the code according to this:
Workaround arm64 gcc error in std::copysign on Jetson platforms
Read More:
- [Solved] paddle:FatalError: `Segmentation fault` is detected by the operating system.
- [Solved] docker Commands Execute Error: Segmentation fault
- [Solved] C++ reason ncnn model error: Segmentation fault (core dumped)
- How to Solve “parcel segmentation fault” Error in Linux
- [Solved] IntelliJ IDEA Compile Error: Errorjava Compilation failed internal java compiler error
- [Solved] internal compiler error Killed (program cc1plus)
- [Solved] c++: internal compiler error: Killed (program cc1plus)
- g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocess
- [Solved] IDEA Error: java: Compilation failed: internal java compiler error
- [Solved] jetson nano Error: Illegal instruction(core dumped)
- POI’s XWPFParagraph.getRuns Segmentation problem
- [Solved] fatal error C1189: #error: STL1003: Unexpected compiler, expected C++ compiler
- Cmake Error The C compiler identification is GNU 7.5.0 — The CXX compiler identification is unknown
- Pytorch failed to specify GPU resolution
- Memory write error at 0x100000. MMU section translation fault [How to Solve]
- Android 10 SurfaceView Crash: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4
- [Solved] Pytorch loading model specified GPU card number error or failed to specify
- [Solved] NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL ,unhandled cuda error, NCCLversion 2.7.8
- Xilinx Vitis Error Launching Program: Memory write error MMU section translation fault
- [Solved] Pytorch3d Error: RuntimeError: Not compiled with GPU support.