作者小头像 Lv.1
0 成长值

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

暂无数据
个人勋章
TA还没获得勋章~
成长雷达
0
0
0
0
0

个人资料

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

暂无数据

达成规则

发布时间 2019/09/02 16:41:08 最后回复 hwewyu87 2020/11/25 17:40:35 版块 鲲鹏DevKit
10123 3 1
他的回复:
编译1.6.0 pytorch遇到以下错误:Performing C++ SOURCE FILE Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_5714f && [1/2] Building CXX object CMakeFiles/cmTC_5714f.dir/src.cxx.o FAILED: CMakeFiles/cmTC_5714f.dir/src.cxx.o  /usr/local/gcc-8.3.0/bin/c++   -DCAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING -std=c++14 -o CMakeFiles/cmTC_5714f.dir/src.cxx.o -c src.cxx src.cxx:1:10: fatal error: glog/stl_logging.h: No such file or directory  #include stl_logging.h>           ^~~~~~~~~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was: #include stl_logging.h>     int main(int argc, char** argv) {       return 0;     } Performing C++ SOURCE FILE Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_86863 && [1/2] Building CXX object CMakeFiles/cmTC_86863.dir/src.cxx.o FAILED: CMakeFiles/cmTC_86863.dir/src.cxx.o  /usr/local/gcc-8.3.0/bin/c++   -Wno-deprecated -DCAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS -mavx2 -o CMakeFiles/cmTC_86863.dir/src.cxx.o -c src.cxx c++: error: unrecognized command line option ‘-mavx2’ ninja: build stopped: subcommand failed. Source file was: #include        int main() {         __m256i a, b;         a = _mm256_set1_epi8 (1);         b = a;         _mm256_add_epi8 (a,a);         __m256i x;         _mm256_extract_epi64(x, 0); // we rely on this in our AVX2 code         return 0;       } Performing C++ SOURCE FILE Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_ae2bc && [1/2] Building CXX object CMakeFiles/cmTC_ae2bc.dir/src.cxx.o FAILED: CMakeFiles/cmTC_ae2bc.dir/src.cxx.o  /usr/local/gcc-8.3.0/bin/c++   -Wno-deprecated -DCAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS -mavx512f -mavx512dq -mavx512vl -o CMakeFiles/cmTC_ae2bc.dir/src.cxx.o -c src.cxx c++: error: unrecognized command line option ‘-mavx512f’ c++: error: unrecognized command line option ‘-mavx512dq’ c++: error: unrecognized command line option ‘-mavx512vl’ ninja: build stopped: subcommand failed. Source file was: #if defined(_MSC_VER)      #include       #else      #include       #endif      // check avx512f      __m512 addConstant(__m512 arg) {        return _mm512_add_ps(arg, _mm512_set1_ps(1.f));      }      // check avx512dq      __m512 andConstant(__m512 arg) {        return _mm512_and_ps(arg, _mm512_set1_ps(1.f));      }      int main() {        __m512i a = _mm512_set1_epi32(1);        __m256i ymm = _mm512_extracti64x4_epi64(a, 0);        ymm = _mm256_abs_epi64(ymm); // check avx512vl        __mmask16 m = _mm512_cmp_epi32_mask(a, a, _MM_CMPINT_EQ);        __m512i r = _mm512_andnot_si512(a, a);      } Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_f645c && [1/2] Building C object CMakeFiles/cmTC_f645c.dir/src.c.o [2/2] Linking C executable cmTC_f645c FAILED: cmTC_f645c  : && /usr/local/gcc-8.3.0/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -rdynamic CMakeFiles/cmTC_f645c.dir/src.c.o -o cmTC_f645c   && : CMakeFiles/cmTC_f645c.dir/src.c.o: In function `main': src.c:(.text+0x34): undefined reference to `pthread_create' src.c:(.text+0x3c): undefined reference to `pthread_detach' src.c:(.text+0x44): undefined reference to `pthread_cancel' src.c:(.text+0x50): undefined reference to `pthread_join' src.c:(.text+0x60): undefined reference to `pthread_atfork' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Source file was: #include  void* test_func(void* data) {   return data; } int main(void) {   pthread_t thread;   pthread_create(&thread, NULL, test_func, NULL);   pthread_detach(thread);   pthread_cancel(thread);   pthread_join(thread, NULL);   pthread_atfork(NULL, NULL, NULL);   pthread_exit(NULL);   return 0; } Performing C SOURCE FILE Test BLAS_F2C_DOUBLE_WORKS failed with the following compile output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_63f12 && [1/2] Building C object CMakeFiles/cmTC_63f12.dir/src.c.o [2/2] Linking C executable cmTC_63f12 ...and run output: Return value: 1 Source file was: #include  #include  float x[4] = { 1, 2, 3, 4 }; float y[4] = { .1, .01, .001, .0001 }; int four = 4; int one = 1; extern double sdot_(); int main() {   int i;   double r = sdot_(&four, x, &one, y, &one);   exit((float)r != (float).1234); } Determining if the include file cpuid.h exists failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_9c7bb && [1/2] Building C object CMakeFiles/cmTC_9c7bb.dir/CheckIncludeFile.c.o FAILED: CMakeFiles/cmTC_9c7bb.dir/CheckIncludeFile.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG  -fPIE -o CMakeFiles/cmTC_9c7bb.dir/CheckIncludeFile.c.o -c CheckIncludeFile.c CheckIncludeFile.c:1:10: fatal error: cpuid.h: No such file or directory  #include            ^~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Performing C SOURCE FILE Test NO_GCC_EBX_FPIC_BUG failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_9c899 && [1/2] Building C object CMakeFiles/cmTC_9c899.dir/src.c.o FAILED: CMakeFiles/cmTC_9c899.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DNO_GCC_EBX_FPIC_BUG -fPIE -o CMakeFiles/cmTC_9c899.dir/src.c.o -c src.c src.c: In function ‘cpuid’: src.c:6:9: error: impossible constraint in ‘asm’          asm volatile ( "cpuid" : "+a"(a), "=b"(b), "+c"(c), "=d"(d) );          ^~~ ninja: build stopped: subcommand failed. Source file was: #include        static inline void cpuid(uint32_t *eax, uint32_t *ebx,                                uint32_t *ecx, uint32_t *edx)       {         uint32_t a = *eax, b, c = *ecx, d;         asm volatile ( "cpuid" : "+a"(a), "=b"(b), "+c"(c), "=d"(d) );         *eax = a; *ebx = b; *ecx = c; *edx = d;       }       int main() {         uint32_t a,b,c,d;         cpuid(&a, &b, &c, &d);         return 0;       } Performing C SOURCE FILE Test C_HAS_AVX_1 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_f8c22 && [1/2] Building C object CMakeFiles/cmTC_f8c22.dir/src.c.o FAILED: CMakeFiles/cmTC_f8c22.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DC_HAS_AVX_1 -fPIE -o CMakeFiles/cmTC_f8c22.dir/src.c.o -c src.c src.c:2:12: fatal error: immintrin.h: No such file or directory    #include              ^~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was:   #include    int main()   {     __m256 a;     a = _mm256_set1_ps(0);     return 0;   } Performing C SOURCE FILE Test C_HAS_AVX_2 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_9a3da && [1/2] Building C object CMakeFiles/cmTC_9a3da.dir/src.c.o FAILED: CMakeFiles/cmTC_9a3da.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DC_HAS_AVX_2 -mavx -fPIE -o CMakeFiles/cmTC_9a3da.dir/src.c.o -c src.c cc: error: unrecognized command line option ‘-mavx’ ninja: build stopped: subcommand failed. Source file was:   #include    int main()   {     __m256 a;     a = _mm256_set1_ps(0);     return 0;   } Performing C SOURCE FILE Test C_HAS_AVX_3 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_faa3c && [1/2] Building C object CMakeFiles/cmTC_faa3c.dir/src.c.o FAILED: CMakeFiles/cmTC_faa3c.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DC_HAS_AVX_3 /arch:AVX -fPIE -o CMakeFiles/cmTC_faa3c.dir/src.c.o -c src.c cc: error: /arch:AVX: No such file or directory ninja: build stopped: subcommand failed. Source file was:   #include    int main()   {     __m256 a;     a = _mm256_set1_ps(0);     return 0;   } Performing C SOURCE FILE Test C_HAS_AVX2_1 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_42b2f && [1/2] Building C object CMakeFiles/cmTC_42b2f.dir/src.c.o FAILED: CMakeFiles/cmTC_42b2f.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DC_HAS_AVX2_1 -fPIE -o CMakeFiles/cmTC_42b2f.dir/src.c.o -c src.c src.c:2:12: fatal error: immintrin.h: No such file or directory    #include              ^~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was:   #include    int main()   {     __m256i a = {0};     a = _mm256_abs_epi16(a);     __m256i x;     _mm256_extract_epi64(x, 0); // we rely on this in our AVX2 code     return 0;   } Performing C SOURCE FILE Test C_HAS_AVX2_2 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_0cca7 && [1/2] Building C object CMakeFiles/cmTC_0cca7.dir/src.c.o FAILED: CMakeFiles/cmTC_0cca7.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DC_HAS_AVX2_2 -mavx2 -mfma -fPIE -o CMakeFiles/cmTC_0cca7.dir/src.c.o -c src.c cc: error: unrecognized command line option ‘-mavx2’ cc: error: unrecognized command line option ‘-mfma’ ninja: build stopped: subcommand failed. Source file was:   #include    int main()   {     __m256i a = {0};     a = _mm256_abs_epi16(a);     __m256i x;     _mm256_extract_epi64(x, 0); // we rely on this in our AVX2 code     return 0;   } Performing C SOURCE FILE Test C_HAS_AVX2_3 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_bed79 && [1/2] Building C object CMakeFiles/cmTC_bed79.dir/src.c.o FAILED: CMakeFiles/cmTC_bed79.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DC_HAS_AVX2_3 /arch:AVX2 -fPIE -o CMakeFiles/cmTC_bed79.dir/src.c.o -c src.c cc: error: /arch:AVX2: No such file or directory ninja: build stopped: subcommand failed. Source file was:   #include    int main()   {     __m256i a = {0};     a = _mm256_abs_epi16(a);     __m256i x;     _mm256_extract_epi64(x, 0); // we rely on this in our AVX2 code     return 0;   } Performing C SOURCE FILE Test CXX_HAS_AVX_1 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_91981 && [1/2] Building C object CMakeFiles/cmTC_91981.dir/src.c.o FAILED: CMakeFiles/cmTC_91981.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DCXX_HAS_AVX_1 -fPIE -o CMakeFiles/cmTC_91981.dir/src.c.o -c src.c src.c:2:12: fatal error: immintrin.h: No such file or directory    #include              ^~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was:   #include    int main()   {     __m256 a;     a = _mm256_set1_ps(0);     return 0;   } Performing C SOURCE FILE Test CXX_HAS_AVX_2 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_63a5c && [1/2] Building C object CMakeFiles/cmTC_63a5c.dir/src.c.o FAILED: CMakeFiles/cmTC_63a5c.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DCXX_HAS_AVX_2 -mavx -fPIE -o CMakeFiles/cmTC_63a5c.dir/src.c.o -c src.c cc: error: unrecognized command line option ‘-mavx’ ninja: build stopped: subcommand failed. Source file was:   #include    int main()   {     __m256 a;     a = _mm256_set1_ps(0);     return 0;   } Performing C SOURCE FILE Test CXX_HAS_AVX_3 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_38010 && [1/2] Building C object CMakeFiles/cmTC_38010.dir/src.c.o FAILED: CMakeFiles/cmTC_38010.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DCXX_HAS_AVX_3 /arch:AVX -fPIE -o CMakeFiles/cmTC_38010.dir/src.c.o -c src.c cc: error: /arch:AVX: No such file or directory ninja: build stopped: subcommand failed. Source file was:   #include    int main()   {     __m256 a;     a = _mm256_set1_ps(0);     return 0;   } Performing C SOURCE FILE Test CXX_HAS_AVX2_1 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_95207 && [1/2] Building C object CMakeFiles/cmTC_95207.dir/src.c.o FAILED: CMakeFiles/cmTC_95207.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DCXX_HAS_AVX2_1 -fPIE -o CMakeFiles/cmTC_95207.dir/src.c.o -c src.c src.c:2:12: fatal error: immintrin.h: No such file or directory    #include              ^~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was:   #include    int main()   {     __m256i a = {0};     a = _mm256_abs_epi16(a);     __m256i x;     _mm256_extract_epi64(x, 0); // we rely on this in our AVX2 code     return 0;   } Performing C SOURCE FILE Test CXX_HAS_AVX2_2 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_27c9d && [1/2] Building C object CMakeFiles/cmTC_27c9d.dir/src.c.o FAILED: CMakeFiles/cmTC_27c9d.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DCXX_HAS_AVX2_2 -mavx2 -mfma -fPIE -o CMakeFiles/cmTC_27c9d.dir/src.c.o -c src.c cc: error: unrecognized command line option ‘-mavx2’ cc: error: unrecognized command line option ‘-mfma’ ninja: build stopped: subcommand failed. Source file was:   #include    int main()   {     __m256i a = {0};     a = _mm256_abs_epi16(a);     __m256i x;     _mm256_extract_epi64(x, 0); // we rely on this in our AVX2 code     return 0;   } Performing C SOURCE FILE Test CXX_HAS_AVX2_3 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_32e2b && [1/2] Building C object CMakeFiles/cmTC_32e2b.dir/src.c.o FAILED: CMakeFiles/cmTC_32e2b.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -DCXX_HAS_AVX2_3 /arch:AVX2 -fPIE -o CMakeFiles/cmTC_32e2b.dir/src.c.o -c src.c cc: error: /arch:AVX2: No such file or directory ninja: build stopped: subcommand failed. Source file was:   #include    int main()   {     __m256i a = {0};     a = _mm256_abs_epi16(a);     __m256i x;     _mm256_extract_epi64(x, 0); // we rely on this in our AVX2 code     return 0;   } Determining if the strtod_l exist failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_56335 && [1/2] Building C object CMakeFiles/cmTC_56335.dir/CheckSymbolExists.c.o FAILED: CMakeFiles/cmTC_56335.dir/CheckSymbolExists.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG  -fPIE -std=gnu11 -o CMakeFiles/cmTC_56335.dir/CheckSymbolExists.c.o -c CheckSymbolExists.c CheckSymbolExists.c: In function ‘main’: CheckSymbolExists.c:8:19: error: ‘strtod_l’ undeclared (first use in this function); did you mean ‘strtoull’?    return ((int*)(&strtod_l))[argc];                    ^~~~~~~~                    strtoull CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in ninja: build stopped: subcommand failed. File /opt/pytorch/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include  int main(int argc, char** argv) {   (void)argv; #ifndef strtod_l   return ((int*)(&strtod_l))[argc]; #else   (void)argc;   return 0; #endif } Performing C SOURCE FILE Test COMPILER_SUPPORTS_FLOAT128 failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_71e2d && [1/2] Building C object CMakeFiles/cmTC_71e2d.dir/src.c.o FAILED: CMakeFiles/cmTC_71e2d.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -Wno-ignored-qualifiers -Wno-absolute-value -DCOMPILER_SUPPORTS_FLOAT128 -fPIE -o CMakeFiles/cmTC_71e2d.dir/src.c.o -c src.c src.c: In function ‘main’: src.c:2:16: error: unknown type name ‘__float128’; did you mean ‘_Float128’?    int main() { __float128 r = 1;                 ^~~~~~~~~~                 _Float128 src.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-absolute-value’ ninja: build stopped: subcommand failed. Source file was:   int main() { __float128 r = 1;   } Performing C SOURCE FILE Test COMPILER_SUPPORTS_SVE failed with the following output: Change Dir: /opt/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/miniforge/envs/py36_lxs/bin/ninja cmTC_1a660 && [1/2] Building C object CMakeFiles/cmTC_1a660.dir/src.c.o FAILED: CMakeFiles/cmTC_1a660.dir/src.c.o  /usr/local/gcc-8.3.0/bin/cc   -fopenmp -DNDEBUG -Wno-ignored-qualifiers -Wno-absolute-value -DCOMPILER_SUPPORTS_SVE -march=armv8-a+sve -fPIE -o CMakeFiles/cmTC_1a660.dir/src.c.o -c src.c src.c:2:12: fatal error: arm_sve.h: No such file or directory    #include              ^~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was:   #include    int main() {     svint32_t r = svdup_n_s32(1); }