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:
- MOTR compiling error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_R
- [Solved] NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL ,unhandled cuda error, NCCLversion 2.7.8
- [Solved] CUDA error:-UserWarning: CUDA initialization: CUDA unknown error
- [Solved] TF2.4 Error: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- TensorFlow-gpu Error: failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
- [Solved] Pytorch loading model specified GPU card number error or failed to specify
- Pytorch failed to specify GPU resolution
- [Solved] CUDA fails to compile in visual studio and throws error msb3721 and nvcc fatal
- Error using tensorflow GPU: could not create cudnn handle: cudnn_STATUS_NOT_INITIALIZED
- [Solved] UserWarning: CUDA initialization: CUDA unknown error
- Cuda Runtime error (38) : no CUDA-capable device is detected
- Tensorflow GPU error (4 Type Error and their Solutions)
- [Solved] RuntimeError: CUDA error: out of memory
- Opencv Can not Find opencv2/gpu/gpu.hpp [How to Solve]
- How to Solve AOP error in Spring
- [Solved] import mxnet Error: OSError: libcudart.so.8.0: cannot open shared object file: No such file or directory
- [Solved] RuntimeError: cuDNN error: CUDNN_STATUS_INTERNAL_ERROR
- Gem5 Compiler error: error: -Werror=……no option [How to Solve]
- [Solved] paddle:FatalError: `Segmentation fault` is detected by the operating system.
- Error (active) e1696 cannot open source file “errno.H” rpgworld problems encountered in installing visual studio 2017