You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BASE64_WITH_OPENMP seems to do nothing, I think because in here is written BASE64_WITH_OpenMP.
You can easily see that with BASE64_WITH_OPENMP=1 there is no change in encoding speed. Also running OMP_DISPLAY_ENV=VERBOSE bin/benchmark displays no info on the #threads used.
However, when I try to fix the line and rebuild, I get
[ 83%] Linking C executable ../bin/benchmark
/usr/bin/ld: ../libbase64.a(lib.c.o): in function `base64_encode_openmp._omp_fn.0':
lib.c:(.text+0x3e): undefined reference to `GOMP_single_start'
/usr/bin/ld: lib.c:(.text+0x46): undefined reference to `omp_get_num_threads'
/usr/bin/ld: lib.c:(.text+0x58): undefined reference to `GOMP_barrier'
/usr/bin/ld: lib.c:(.text+0x73): undefined reference to `omp_get_thread_num'
/usr/bin/ld: lib.c:(.text+0x125): undefined reference to `GOMP_barrier'
/usr/bin/ld: ../libbase64.a(lib.c.o): in function `base64_decode_openmp._omp_fn.0':
lib.c:(.text+0x21e): undefined reference to `GOMP_single_start'
/usr/bin/ld: lib.c:(.text+0x226): undefined reference to `omp_get_num_threads'
/usr/bin/ld: lib.c:(.text+0x238): undefined reference to `GOMP_barrier'
/usr/bin/ld: lib.c:(.text+0x252): undefined reference to `omp_get_thread_num'
/usr/bin/ld: lib.c:(.text+0x2d4): undefined reference to `GOMP_atomic_start'
/usr/bin/ld: lib.c:(.text+0x2e1): undefined reference to `GOMP_atomic_end'
/usr/bin/ld: lib.c:(.text+0x2e6): undefined reference to `GOMP_barrier'
/usr/bin/ld: ../libbase64.a(lib.c.o): in function `base64_encode':
lib.c:(.text+0x626): undefined reference to `GOMP_parallel'
/usr/bin/ld: ../libbase64.a(lib.c.o): in function `base64_decode':
lib.c:(.text+0x886): undefined reference to `GOMP_parallel'
Could it be libbase64 is being linked without openmp?
The text was updated successfully, but these errors were encountered:
BASE64_WITH_OPENMP seems to do nothing, I think because in here is written BASE64_WITH_OpenMP.
You can easily see that with BASE64_WITH_OPENMP=1 there is no change in encoding speed. Also running
OMP_DISPLAY_ENV=VERBOSE bin/benchmark
displays no info on the #threads used.However, when I try to fix the line and rebuild, I get
Could it be libbase64 is being linked without openmp?
The text was updated successfully, but these errors were encountered: