Skip to content

Compilation error on Jetson AGX Xavier #85

@WaiTsun-Yeung

Description

@WaiTsun-Yeung

When I tried to compile with CMake with this command:

sudo make -C yolo2_light-master

after I added two lines on the MakeFile accomodating the Jetson AGX Xavier architecture:

    ARCH= 
    ......
          -gencode arch=compute_72,code=[sm_72,compute_72]
   ......
    # For Jetson AGX Xavier, Drive AGX Pegasus or Xavier NX uncomment:
    ARCH= -gencode arch=compute_72, code=[sm_72,compute_72]

, I received the following error:

  make: Entering directory '/opt/nvidia/deepstream/deepstream-5.1/sources/yolo2_light-master'
  find . -name "*.sh" -exec chmod +x {} \;
  gcc  -DGPU -I/usr/local/cuda/include/ -DCUDNN  -Wall -Wfatal-errors -Ofast -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/main.c -o obj/main.o
  In file included from ./src/main.c:7:0:
  ./src/additionally.h: In function ‘activate’:
  ./src/additionally.h:128:9: warning: enumeration value ‘SELU’ not handled in switch [-Wswitch]
           switch (a) {
           ^~~~~~
  ./src/main.c: In function ‘draw_detections_v3’:
  ./src/main.c:125:15: warning: variable ‘rgb’ set but not used [-Wunused-but-set-variable]
           float rgb[3];
                 ^~~
  ./src/main.c: In function ‘run_detector’:
  ./src/main.c:600:9: warning: unused variable ‘clear’ [-Wunused-variable]
       int clear = 0;                // find_arg(argc, argv, "-clear");
           ^~~~~
  gcc  -DGPU -I/usr/local/cuda/include/ -DCUDNN  -Wall -Wfatal-errors -Ofast -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/additionally.c -o obj/additionally.o
  In file included from ./src/additionally.c:1:0:
  ./src/additionally.h: In function ‘activate’:
  ./src/additionally.h:128:9: warning: enumeration value ‘SELU’ not handled in switch [-Wswitch]
           switch (a) {
           ^~~~~~
  ./src/additionally.c: At top level:
  ./src/additionally.c:9:0: warning: ignoring #pragma comment  [-Wunknown-pragmas]
   #pragma comment(lib, "cudnn.lib")
   
  In file included from ./src/additionally.c:17:0:
  ./src/stb_image.h: In function ‘stbi__convert_format’:
  ./src/stb_image.h:1338:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
         #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                              ^
  ./src/stb_image.h:1342:10: note: in expansion of macro ‘CASE’
            CASE(1,2) dest[0]=src[0], dest[1]=255; break;
            ^~~~
  ./src/stb_image.h:1342:49: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
            CASE(1,2) dest[0]=src[0], dest[1]=255; break;
                                                   ^~~~~
  ./src/stb_image.h:1338:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
         #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                              ^
  ./src/stb_image.h:1343:10: note: in expansion of macro ‘CASE’
            CASE(1,3) dest[0]=dest[1]=dest[2]=src[0]; break;
            ^~~~
  ./src/stb_image.h:1343:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
            CASE(1,3) dest[0]=dest[1]=dest[2]=src[0]; break;
                                                      ^~~~~
  ./src/stb_image.h:1338:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
         #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                              ^
  ./src/stb_image.h:1344:10: note: in expansion of macro ‘CASE’
            CASE(1,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=255; break;
            ^~~~
  ./src/stb_image.h:1344:65: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
            CASE(1,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=255; break;
                                                                   ^~~~~
  ./src/stb_image.h:1338:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
         #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                              ^
  ./src/stb_image.h:1345:10: note: in expansion of macro ‘CASE’
            CASE(2,1) dest[0]=src[0]; break;
            ^~~~
  ./src/stb_image.h:1345:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
            CASE(2,1) dest[0]=src[0]; break;
                                      ^~~~~
  ./src/stb_image.h:1338:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
         #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                              ^
  ./src/stb_image.h:1346:10: note: in expansion of macro ‘CASE’
            CASE(2,3) dest[0]=dest[1]=dest[2]=src[0]; break;
            ^~~~
  ./src/stb_image.h:1346:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
            CASE(2,3) dest[0]=dest[1]=dest[2]=src[0]; break;
                                                      ^~~~~
  ./src/stb_image.h:1338:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
         #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                              ^
  ./src/stb_image.h:1347:10: note: in expansion of macro ‘CASE’
            CASE(2,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=src[1]; break;
            ^~~~
  ./src/stb_image.h:1347:68: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
            CASE(2,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=src[1]; break;
                                                                      ^~~~~
  ./src/stb_image.h:1338:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
         #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                              ^
  ./src/stb_image.h:1348:10: note: in expansion of macro ‘CASE’
            CASE(3,4) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2],dest[3]=255; break;
            ^~~~
  ./src/stb_image.h:1348:78: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
            CASE(3,4) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2],dest[3]=255; break;
                                                                                ^~~~~
  ./src/stb_image.h:1338:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
         #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                              ^
  ./src/stb_image.h:1349:10: note: in expansion of macro ‘CASE’
            CASE(3,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break;
            ^~~~
  ./src/stb_image.h:1349:67: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
            CASE(3,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break;
                                                                     ^~~~~
  ./src/stb_image.h:1338:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
         #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                              ^
  ./src/stb_image.h:1350:10: note: in expansion of macro ‘CASE’
            CASE(3,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = 255; break;
            ^~~~
  ./src/stb_image.h:1350:82: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
            CASE(3,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = 255; break;
                                                                                    ^~~~~
  ./src/stb_image.h:1338:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
         #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                              ^
  ./src/stb_image.h:1351:10: note: in expansion of macro ‘CASE’
            CASE(4,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break;
            ^~~~
  ./src/stb_image.h:1351:67: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
            CASE(4,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break;
                                                                     ^~~~~
  ./src/stb_image.h:1338:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
         #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                              ^
  ./src/stb_image.h:1352:10: note: in expansion of macro ‘CASE’
            CASE(4,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = src[3]; break;
            ^~~~
  ./src/stb_image.h:1352:85: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
            CASE(4,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = src[3]; break;
                                                                                       ^~~~~
  ./src/stb_image.h:1338:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
         #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
                                              ^
  ./src/stb_image.h:1353:10: note: in expansion of macro ‘CASE’
            CASE(4,3) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2]; break;
            ^~~~
  ./src/stb_image.h:1353:66: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
            CASE(4,3) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2]; break;
                                                                    ^~~~~
  ./src/stb_image.h: In function ‘stbi__create_png_image_raw’:
  ./src/stb_image.h:4027:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                   for (k=0; k < nk; ++k)
                   ^
  ./src/stb_image.h:4031:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_sub)          cur[k] = STBI__BYTECAST(raw[k] + cur[k-filter_bytes]); break;
               ^~~~
  ./src/stb_image.h:4031:95: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
               CASE(STBI__F_sub)          cur[k] = STBI__BYTECAST(raw[k] + cur[k-filter_bytes]); break;
                                                                                                 ^~~~~
  ./src/stb_image.h:4027:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                   for (k=0; k < nk; ++k)
                   ^
  ./src/stb_image.h:4032:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_up)           cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
               ^~~~
  ./src/stb_image.h:4032:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
               CASE(STBI__F_up)           cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
                                                                                      ^~~~~
  ./src/stb_image.h:4027:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                   for (k=0; k < nk; ++k)
                   ^
  ./src/stb_image.h:4033:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_avg)          cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-filter_bytes])>>1)); break;
               ^~~~
  ./src/stb_image.h:4033:113: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
               CASE(STBI__F_avg)          cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-filter_bytes])>>1)); break;
                                                                                                                   ^~~~~
  ./src/stb_image.h:4027:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                   for (k=0; k < nk; ++k)
                   ^
  ./src/stb_image.h:4034:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_paeth)        cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],prior[k],prior[k-filter_bytes])); break;
               ^~~~
  ./src/stb_image.h:4034:139: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
       CASE(STBI__F_paeth)        cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],prior[k],prior[k-filter_bytes])); break;
                                                                                                                                     ^~~~~
  ./src/stb_image.h:4027:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                   for (k=0; k < nk; ++k)
                   ^
  ./src/stb_image.h:4035:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_avg_first)    cur[k] = STBI__BYTECAST(raw[k] + (cur[k-filter_bytes] >> 1)); break;
               ^~~~
  ./src/stb_image.h:4035:102: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
               CASE(STBI__F_avg_first)    cur[k] = STBI__BYTECAST(raw[k] + (cur[k-filter_bytes] >> 1)); break;
                                                                                                        ^~~~~
  ./src/stb_image.h:4027:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                   for (k=0; k < nk; ++k)
                   ^
  ./src/stb_image.h:4036:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_paeth_first)  cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],0,0)); break;
               ^~~~
  ./src/stb_image.h:4036:112: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
               CASE(STBI__F_paeth_first)  cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],0,0)); break;
                                                                                                                  ^~~~~
  ./src/stb_image.h:4045:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                      for (k=0; k < img_n; ++k)
                      ^
  ./src/stb_image.h:4047:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_none)         cur[k] = raw[k]; break;
               ^~~~
  ./src/stb_image.h:4047:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
               CASE(STBI__F_none)         cur[k] = raw[k]; break;
                                                           ^~~~~
  ./src/stb_image.h:4045:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                      for (k=0; k < img_n; ++k)
                      ^
  ./src/stb_image.h:4048:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_sub)          cur[k] = STBI__BYTECAST(raw[k] + cur[k-out_n]); break;
               ^~~~
  ./src/stb_image.h:4048:88: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
               CASE(STBI__F_sub)          cur[k] = STBI__BYTECAST(raw[k] + cur[k-out_n]); break;
                                                                                          ^~~~~
  ./src/stb_image.h:4045:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                      for (k=0; k < img_n; ++k)
                      ^
  ./src/stb_image.h:4049:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_up)           cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
               ^~~~
  ./src/stb_image.h:4049:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
               CASE(STBI__F_up)           cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
                                                                                      ^~~~~
  ./src/stb_image.h:4045:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                      for (k=0; k < img_n; ++k)
                      ^
  ./src/stb_image.h:4050:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_avg)          cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-out_n])>>1)); break;
               ^~~~
  ./src/stb_image.h:4050:106: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
               CASE(STBI__F_avg)          cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-out_n])>>1)); break;
                                                                                                            ^~~~~
  ./src/stb_image.h:4045:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                      for (k=0; k < img_n; ++k)
                      ^
  ./src/stb_image.h:4051:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_paeth)        cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],prior[k],prior[k-out_n])); break;
               ^~~~
  ./src/stb_image.h:4051:125: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
               CASE(STBI__F_paeth)        cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],prior[k],prior[k-out_n])); break;
                                                                                                                               ^~~~~
  ./src/stb_image.h:4045:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                      for (k=0; k < img_n; ++k)
                      ^
  ./src/stb_image.h:4052:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_avg_first)    cur[k] = STBI__BYTECAST(raw[k] + (cur[k-out_n] >> 1)); break;
               ^~~~
  ./src/stb_image.h:4052:95: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
               CASE(STBI__F_avg_first)    cur[k] = STBI__BYTECAST(raw[k] + (cur[k-out_n] >> 1)); break;
                                                                                                 ^~~~~
  ./src/stb_image.h:4045:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                      for (k=0; k < img_n; ++k)
                      ^
  ./src/stb_image.h:4053:13: note: in expansion of macro ‘CASE’
               CASE(STBI__F_paeth_first)  cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],0,0)); break;
               ^~~~
  ./src/stb_image.h:4053:105: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
               CASE(STBI__F_paeth_first)  cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],0,0)); break;
                                                                                                           ^~~~~
  ./src/additionally.c: In function ‘binary_align_weights’:
  ./src/additionally.c:233:30: warning: unused variable ‘val’ [-Wunused-variable]
                       uint32_t val = 0;
                                ^~~
  ./src/additionally.c:251:37: warning: pointer targets in passing argument 2 of ‘float_to_bit’ differ in signedness [-Wpointer-sign]
           float_to_bit(align_weights, l->align_bit_weights, align_weights_size);
                                       ^
  In file included from ./src/additionally.c:1:0:
  ./src/additionally.h:244:10: note: expected ‘unsigned char *’ but argument is of type ‘char *’
       void float_to_bit(float *src, unsigned char *dst, size_t size);
            ^~~~~~~~~~~~
  ./src/additionally.c:257:17: warning: unused variable ‘N’ [-Wunused-variable]
               int N = l->out_w*l->out_h;
                   ^
  ./src/additionally.c:256:17: warning: unused variable ‘M’ [-Wunused-variable]
               int M = l->n;
                   ^
  ./src/additionally.c:269:37: warning: pointer targets in passing argument 2 of ‘float_to_bit’ differ in signedness [-Wpointer-sign]
           float_to_bit(align_weights, l->align_bit_weights, align_weights_size);
                                       ^
  In file included from ./src/additionally.c:1:0:
  ./src/additionally.h:244:10: note: expected ‘unsigned char *’ but argument is of type ‘char *’
       void float_to_bit(float *src, unsigned char *dst, size_t size);
            ^~~~~~~~~~~~
  ./src/additionally.c: In function ‘transpose_32x32_bits_reversed_diagonale’:
  ./src/additionally.c:486:0: warning: ignoring #pragma unroll  [-Wunknown-pragmas]
       #pragma unroll
   
  ./src/additionally.c:489:0: warning: ignoring #pragma unroll  [-Wunknown-pragmas]
       #pragma unroll
   
  ./src/additionally.c: In function ‘transpose_bin’:
  ./src/additionally.c:498:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
       #pragma omp parallel for
   
  ./src/additionally.c:508:25: warning: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
               if (get_bit(A, i*lda + j)) set_bit(B, j*ldb + i);
                           ^
  ./src/additionally.c:353:29: note: expected ‘const unsigned char * const’ but argument is of type ‘uint32_t * {aka unsigned int *}’
   static inline unsigned char get_bit(unsigned char const*const src, size_t index) {
                               ^~~~~~~
  ./src/additionally.c:508:48: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
               if (get_bit(A, i*lda + j)) set_bit(B, j*ldb + i);
                                                  ^
  ./src/additionally.c:347:20: note: expected ‘unsigned char * const’ but argument is of type ‘uint32_t * {aka unsigned int *}’
   static inline void set_bit(unsigned char *const dst, size_t index) {
                      ^~~~~~~
  ./src/additionally.c: In function ‘gemm_nn_bin_transposed_32bit_packed’:
  ./src/additionally.c:529:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
       #pragma omp parallel for
   
  ./src/additionally.c: In function ‘convolution_repacked’:
  ./src/additionally.c:594:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
       #pragma omp parallel for
   
  ./src/additionally.c:597:19: warning: unused variable ‘c_pack’ [-Wunused-variable]
           int chan, c_pack, y, x, f_y, f_x;
                     ^~~~~~
  ./src/additionally.c: In function ‘gemm_nn_bin_32bit_packed’:
  ./src/additionally.c:1295:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
       #pragma omp parallel for
   
  ./src/additionally.c: In function ‘im2col_cpu_custom_bin’:
  ./src/additionally.c:1340:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
           #pragma omp parallel for
   
  ./src/additionally.c:1354:42: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
                       if (val > 0) set_bit(data_col, col_index);
                                            ^~~~~~~~
  ./src/additionally.c:347:20: note: expected ‘unsigned char * const’ but argument is of type ‘float *’
   static inline void set_bit(unsigned char *const dst, size_t index) {
                      ^~~~~~~
  ./src/additionally.c:1365:42: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
                       if (val > 0) set_bit(data_col, col_index);
                                            ^~~~~~~~
  ./src/additionally.c:347:20: note: expected ‘unsigned char * const’ but argument is of type ‘float *’
   static inline void set_bit(unsigned char *const dst, size_t index) {
                      ^~~~~~~
  ./src/additionally.c:1379:42: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
                       if (val > 0) set_bit(data_col, col_index);
                                            ^~~~~~~~
  ./src/additionally.c:347:20: note: expected ‘unsigned char * const’ but argument is of type ‘float *’
   static inline void set_bit(unsigned char *const dst, size_t index) {
                      ^~~~~~~
  ./src/additionally.c:1393:42: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
                       if (val > 0) set_bit(data_col, col_index);
                                            ^~~~~~~~
  ./src/additionally.c:347:20: note: expected ‘unsigned char * const’ but argument is of type ‘float *’
   static inline void set_bit(unsigned char *const dst, size_t index) {
                      ^~~~~~~
  ./src/additionally.c:1407:42: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
                       if (val > 0) set_bit(data_col, col_index);
                                            ^~~~~~~~
  ./src/additionally.c:347:20: note: expected ‘unsigned char * const’ but argument is of type ‘float *’
   static inline void set_bit(unsigned char *const dst, size_t index) {
                      ^~~~~~~
  ./src/additionally.c:1421:42: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
                       if (val > 0) set_bit(data_col, col_index);
                                            ^~~~~~~~
  ./src/additionally.c:347:20: note: expected ‘unsigned char * const’ but argument is of type ‘float *’
   static inline void set_bit(unsigned char *const dst, size_t index) {
                      ^~~~~~~
  ./src/additionally.c: In function ‘forward_maxpool_layer_avx’:
  ./src/additionally.c:1456:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
           #pragma omp parallel for
   
  ./src/additionally.c: In function ‘gemm_nn_custom_bin_mean_transposed’:
  ./src/additionally.c:1511:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
       #pragma omp parallel for
   
  ./src/additionally.c:1509:18: warning: unused variable ‘h’ [-Wunused-variable]
       int i, j, k, h;
                    ^
  ./src/additionally.c: In function ‘cudnn_convolutional_setup’:
  ./src/additionally.c:2106:29: warning: unused variable ‘tensor_format’ [-Wunused-variable]
           cudnnTensorFormat_t tensor_format = CUDNN_TENSOR_NCHW_VECT_C;
                               ^~~~~~~~~~~~~
  ./src/additionally.c:2137:9: warning: implicit declaration of function ‘cudnnGetConvolutionForwardAlgorithm’; did you mean ‘cudnnGetConvolutionForwardAlgorithm_v7’? [-Wimplicit-function-declaration]
           cudnnGetConvolutionForwardAlgorithm(cudnn_handle(),
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           cudnnGetConvolutionForwardAlgorithm_v7
  ./src/additionally.c:2142:13: error: ‘CUDNN_CONVOLUTION_FWD_PREFER_FASTEST’ undeclared (first use in this function); did you mean ‘CUDNN_CONVOLUTION_BWD_FILTER_ALGO_3’?
               CUDNN_CONVOLUTION_FWD_PREFER_FASTEST,
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               CUDNN_CONVOLUTION_BWD_FILTER_ALGO_3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions