I install Jetpack3.1 on TX1 board following the install guide:
http://docs.nvidia.com/jetpack-l4t/#developertools/mobile/jetpack/l4t/3.2rc/jetpack_l4t_install.htm%3FTocPath%3D_____3
The install is successful with no error.
Then I write code and save it as test.cu, the code is as follow:
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <opencv/cv.h>
int main()
{
cv::Mat frame;
exit(0);
}
and compile it using command: nvcc -o test test.cu -v
Then nvcc report error:
nvidia@tegra-ubuntu:/mnt/sda/test$ nvcc -o test test.cu -v
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
#$ SPACE=
#$ CUDART=cudart
#$ HERE=/usr/local/cuda-8.0/bin
#$ THERE=/usr/local/cuda-8.0/bin
#$ TARGET_SIZE=
#$ TARGET_DIR=
#$ TARGET_DIR=targets/aarch64-linux
#$ TOP=/usr/local/cuda-8.0/bin/…
#$ NVVMIR_LIBRARY_DIR=/usr/local/cuda-8.0/bin/…/nvvm/libdevice
#$ LD_LIBRARY_PATH=/usr/local/cuda-8.0/bin/…/lib:/usr/local/cuda-8.0/lib64:
#$ PATH=/usr/local/cuda-8.0/bin/…/open64/bin:/usr/local/cuda-8.0/bin/…/nvvm/bin:/usr/local/cuda-8.0/bin:/usr/local/cuda-8.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
#$ INCLUDES=“-I/usr/local/cuda-8.0/bin/…/targets/aarch64-linux/include”
#$ LIBRARIES= “-L/usr/local/cuda-8.0/bin/…/targets/aarch64-linux/lib/stubs” “-L/usr/local/cuda-8.0/bin/…/targets/aarch64-linux/lib”
#$ CUDAFE_FLAGS=
#$ PTXAS_FLAGS=
#$ gcc -D__CUDA_ARCH__=200 -E -x c++ -DCUDA_DOUBLE_MATH_FUNCTIONS -D__CUDACC__ -D__NVCC__ “-I/usr/local/cuda-8.0/bin/…/targets/aarch64-linux/include” -D"CUDACC_VER=80072" -D"CUDACC_VER_BUILD=72" -D"CUDACC_VER_MINOR=0" -D"CUDACC_VER_MAJOR=8" -include “cuda_runtime.h” “test.cu” > “/tmp/tmpxft_00000958_00000000-9_test.cpp1.ii”
#$ cudafe --allow_managed --m64 --gnu_version=50400 -tused --no_remove_unneeded_entities --gen_c_file_name “/tmp/tmpxft_00000958_00000000-4_test.cudafe1.c” --stub_file_name “/tmp/tmpxft_00000958_00000000-4_test.cudafe1.stub.c” --gen_device_file_name “/tmp/tmpxft_00000958_00000000-4_test.cudafe1.gpu” --nv_arch “compute_20” --gen_module_id_file --module_id_file_name “/tmp/tmpxft_00000958_00000000-3_test.module_id” --unsigned_chars --include_file_name “tmpxft_00000958_00000000-2_test.fatbin.c” “/tmp/tmpxft_00000958_00000000-9_test.cpp1.ii”
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(38): error: identifier “__Int8x8_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(39): error: identifier “__Int16x4_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(40): error: identifier “__Int32x2_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(41): error: identifier “__Int64x1_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(42): error: identifier “__Float16x4_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(43): error: identifier “__Float32x2_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(44): error: identifier “__Poly8x8_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(45): error: identifier “__Poly16x4_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(46): error: identifier “__Uint8x8_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(47): error: identifier “__Uint16x4_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(48): error: identifier “__Uint32x2_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(49): error: identifier “__Float64x1_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(50): error: identifier “__Uint64x1_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(51): error: identifier “__Int8x16_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(52): error: identifier “__Int16x8_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(53): error: identifier “__Int32x4_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(54): error: identifier “__Int64x2_t” is undefined
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(55): error: identifier “__Float16x8_t” is undefined
so what’s the problem?