runtime cpu-detection for osmo-trx

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Tom Tsou tom at tsou.cc
Thu Mar 23 21:42:23 UTC 2017


Hi Philipp,

On Thu, Mar 23, 2017 at 7:27 AM, Philipp Maier <pmaier at sysmocom.de> wrote:
> we had a couple of problems with the SSE support in Transceiver52 of
> osmo-trx. The problem was that the -march=native, that is used when
> compiling the x86 code in Transceiver52M/x86/. This would create a platform
> dependent binary that can not be easily moved to another platform. (e.g.
> binary is compiled on a machine that does support SSE4.1, but used on a
> machine that only supports SSE3)
>
> In order to solve the problem, we have added logic to detect the CPU type at
> runtime and to switch between the base implementation
> (Transceiver52M/common) and between the platform specific implementation.

Thank you for the contributions. I have been travelling recently and
am catching up with a number of recent osmo-trx patch submissions. I
am aware of the SSE concerns and will try to review and merge the
patches in a timely manner.

  -TT



More information about the OpenBSC mailing list