Skip to content
Snippets Groups Projects
  1. Sep 25, 2023
  2. Sep 22, 2023
  3. Sep 13, 2023
    • Tsung Yu Chan's avatar
      feat / work with cross-compile · 1f2098fc
      Tsung Yu Chan authored and Robert Schmidt's avatar Robert Schmidt committed
        can compile the target ldpc_generators and generate_T with cross-compiler
      1f2098fc
    • knopp's avatar
      First-level of support for new aarch64 machines · a7bc2823
      knopp authored and Robert Schmidt's avatar Robert Schmidt committed
      Testing on Neoverse N1 (Ampere 3GHz). Tested only on a subset of phy-simulators.
      
      - Changes:
      - use SIMDE consistently
      - adaptations of LDPC decoder generator for ARMv8 performance
      - SIMDe modifications of Intel CRC to allow for aarch64 build.
        optimizations for 128-bit to improve performance of LDPC encode/decode
        on aarch64 (Neoverse 1)
      - added BG2 files for 128-bit ldpc encoder (aarch64)
      - testing on Xeon
      - testing on x86
      - minor changes to build/run on x86
      - change in crc.h after returning to aarch64
      - removed some warning in ldpc decoder generator for x86_64
      - char
      - Delete irrelevant constants
      - Correctly declare variables
      - Define stdbool for all architectures
      - Remove definition of _MM_SHUFFLE and use SIMDE_MM_SHUFFLE
      - Remove commented code
      - Fix CMakeLists.txt
      - Include SIMDE avx2 functions in tools_defs.h
      a7bc2823
  4. Sep 12, 2023
  5. Sep 07, 2023
  6. Sep 04, 2023
  7. Aug 30, 2023
  8. Aug 24, 2023
  9. Aug 18, 2023
  10. Aug 12, 2023
  11. Aug 11, 2023
    • Robert Schmidt's avatar
      Fix alignment of Tpool user data to 32 bytes · f3c2c12f
      Robert Schmidt authored
      The thread pool provides user data to be stored by (pre-)allocating the
      necessary memory. A previous attempt was made to have this user data
      aligned on a 32 byte boundary (e.g., to prevent segfault with SIMD
      instructions, or avoid inefficient data access); the current
      implementation, however, leads to unaligned memory access.
      
      This patch attempts again to implement user data to be 32 byte aligned.
      First, use memalign() to allocate the actual job on a 32 byte boundary.
      Second, use alignas(32) to align the pointer to the user data to be
      aligned to 32 bytes. Since it is the last member of the struct, this
      ensures that user data, which is allocated right behind it, will be
      aligned to 32 bytes as well.
      f3c2c12f
  12. Aug 02, 2023
  13. Aug 01, 2023
    • Robert Schmidt's avatar
      Fix regression for tracing asn1c enc/dec tracing · 31f9dff9
      Robert Schmidt authored
      As described in common/utils/config.h, it is possible to hook into the
      asn1c tracing mechanism to print logs.
      
      This commit fixes a regression to print theses traces properly in OAI.
      Above-mentioned file explains also how to reduce the amount of logs,
      e.g., for single code blocks.
      31f9dff9
    • Robert Schmidt's avatar
      Rename T files to avoid name clashes · f099ff59
      Robert Schmidt authored
      There is already common/utils/config.h. This file(name) is hardcoded as
      it is included into asn1c, and cannot be renamed. To avoid a name clash
      and confusing, we rename T's config.h/c to configuration.h/c.
      f099ff59
    • Robert Schmidt's avatar
      Rename ASN to ASN1 in T traces · 8614f64d
      Robert Schmidt authored
      The T trace names need to match the logging system names (apparently).
      In commit 5f5b8f29, we renamed the
      logging system group to avoid a name clash, but omitted the T trace
      names.
      
      This is corrected in this commit to make everything compile nicely.
      8614f64d
    • Robert Schmidt's avatar
      bb2a3bed
    • Robert Schmidt's avatar
      LOG: do not depend on oai_exit · dd2ef166
      Robert Schmidt authored
      By using oai_exit in log.c, LOG depends on being compiled into an
      executable that defines such symbol, which is not always the case (nor
      does it make sense).
      
      oai_exit is only used in a loop to optionally write out memory. The
      loop could relatively easily be aborted by setting a variable:
      dd2ef166
  14. Jul 28, 2023
  15. Jul 21, 2023
    • mir's avatar
      Warnings generated in gcc 13 and tackled in this PR (except const correctness) · e04554dc
      mir authored
          49 /home/mir/workspace/oai_dev/common/utils/T/tracer/to_vcd.c: In function ‘main’:
          50 /home/mir/workspace/oai_dev/common/utils/T/tracer/to_vcd.c:349:30: warning: ‘%s’ directive writing up to 240 bytes into a region of size between 11 and 251 [-Wformat-overflow=]
          51   349 |     sprintf(format, "%c [%s] %s",
          52       |                              ^~
          53 In file included from /usr/include/stdio.h:894,
          54                  from /home/mir/workspace/oai_dev/common/utils/T/tracer/to_vcd.c:1:
          55 In function ‘sprintf’,
          56     inlined from ‘main’ at /home/mir/workspace/oai_dev/common/utils/T/tracer/to_vcd.c:349:5:
          57 /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:10: note: ‘__builtin___sprintf_chk’ output between 6 and 486 bytes into a destination of size 256
          58    38 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          59       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          60    39 |                                   __glibc_objsize (__s), __fmt,
          61       |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          62    40 |                                   __va_arg_pack ());
          63       |                                   ~~~~~~~~~~~~~~~~~
      
          2005 /home/mir/workspace/oai_dev/openair1/SIMULATION/TOOLS/random_channel.c:1726:6: warning: conflicting types for ‘set_channeldesc_owner’ due to enum/integer mismatch; have ‘void(channel_desc_t *, uint32_t)’ {      aka ‘void(channel_desc_t *, unsigned int)’} [-Wenum-int-mismatch]
          2006  1726 | void set_channeldesc_owner(channel_desc_t *cdesc, uint32_t module_id) {
          2007       |      ^~~~~~~~~~~~~~~~~~~~~
          2008 In file included from /home/mir/workspace/oai_dev/openair1/SIMULATION/TOOLS/random_channel.c:31:
          2009 /home/mir/workspace/oai_dev/openair1/SIMULATION/TOOLS/sim.h:348:6: note: previous declaration of ‘set_channeldesc_owner’ with type ‘void(channel_desc_t *, channelmod_moduleid_t)’
          2010   348 | void set_channeldesc_owner(channel_desc_t *cdesc, channelmod_moduleid_t module_id);
          2011       |      ^~~~~~~~~~~~~~~~~~~~~
      
          24209 /home/mir/workspace/oai_dev/openair1/SCHED_UE/phy_procedures_lte_ue.c:954:17: warning: ‘n1_pucch_inter’ may be used uninitialized [-Wmaybe-uninitialized]
          24210   954 |           return(n1_pucch_inter);
          24211       |                 ^
          24212 /home/mir/workspace/oai_dev/openair1/SCHED_UE/phy_procedures_lte_ue.c:647:60: note: ‘n1_pucch_inter’ was declared here
          24213   647 |   uint16_t n1_pucch0=0,n1_pucch1=0,n1_pucch2=0,n1_pucch3=0,n1_pucch_inter;
          24214       |
      e04554dc
  16. Jul 20, 2023
    • Robert Schmidt's avatar
      T GUI tools: guard with cmake option, default off · 372c0673
      Robert Schmidt authored
      The T tools offering a GUI use libxft as a dependency. By default, we
      try to limit the amount of dependencies, but libxft comes with X11.
      
      Put the GUI tools behind cmake option T_TOOLS_GUI (default: off) to only
      build on demand with a cmake option.
      372c0673
  17. Jul 19, 2023
  18. Jul 13, 2023
  19. Jul 12, 2023
  20. Jul 10, 2023
  21. Jul 07, 2023
    • Robert Schmidt's avatar
      Fix minimal_stub.c · 28ec4944
      Robert Schmidt authored
      It uses definitions from stdlib.h, so include it.
      28ec4944
    • Robert Schmidt's avatar
      Remove cmake ENB_MODE option · 7ebdaf35
      Robert Schmidt authored
      ENB_MODE is a cmake option to swap the order of include directories.
      This has historical reasons; before OAI used cmake, it was very
      sensitive to the order of includes. Nowadays, the order does not matter.
      Remove this option, and fix the compilation issues that arise while
      doing so.
      7ebdaf35
  22. Jun 28, 2023
  23. Jun 12, 2023
Loading