Skip to content

erroneous detection of SSE3 on Linux? #224

Closed

Description

@jmfriedt

Could it be that https://github.com/google/cpu_features/blob/main/src/impl_x86_linux_or_android.c#L47 is incorrect in searching for the "sse3" string in /proc/cpuinfo and should instead search for pni as stated at https://bugzilla.redhat.com/show_bug.cgi?id=491817 ?

Indeed on a Celeron J1900 as provided on a single board computer the command

$ list_cpu_features
flags           : clfsh,cx16,cx8,erms,fpu,mmx,movbe,pclmulqdq,popcnt,rdrnd,ss,sse,sse2,sse4_1,sse4_2,ssse3,tsc

missing sse3. Replacing "sse3" with "pni" leads to

$ list_cpu_features
flags           : clfsh,cx16,cx8,erms,fpu,mmx,movbe,pclmulqdq,popcnt,rdrnd,ss,sse,sse2,sse3,sse4_1,sse4_2,ssse3,tsc

and thanks to this correction VOLK (https://github.com/gnuradio/volk) is able to properly use these SIMD features, demonstrating that they are indeed implemented on this processor.

Activity

  1. gchatelet commented on Feb 22, 2022

    @gchatelet
    Collaborator

    Yes let's do this.

  2. gchatelet commented on Feb 22, 2022

    @gchatelet
    Collaborator

    Fixed by #225

  3. gchatelet commented on Feb 22, 2022

    @gchatelet
    Collaborator

    Thx @jmfriedt for the patch and @toor1245 for the review.

  4. added this to the v0.7.0 milestone on Mar 8, 2022
  5. added
    bug
    on Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions