Forum

    • Register
    • Login
    • Search
    • Categories

    ARM/Intel Universal Binary... how?

    Bug Reports
    8
    36
    682
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dan Korneff
      Dan Korneff last edited by

      I've got my M1 mac mini up and running with:
      HISE - New layout
      Xcode 13
      IPP 2021.4.0

      I'm able to compile ARM64 / ARM64e binaries with IPP disabled, and I can compile x86_64 binaries with IPP enabled... but I'm unable to compile a universal binary with IPP turned on.

      Here's the error I'm seeing:

      ⚠️    ld: ignoring file /opt/intel/ipp/lib/libippi.a, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
      ⚠️    ld: ignoring file /opt/intel/ipp/lib/libipps.a, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
      ⚠️    ld: ignoring file /opt/intel/ipp/lib/libippvm.a, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
      ⚠️    ld: ignoring file /opt/intel/ipp/lib/libippcore.a, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
      
      ❌    Undefined symbols for architecture arm64
      > Symbol: _ippsFree
      > Referenced from: hise::PostGraphicsRenderer::Data::~Data() in lto.o
      
      
      
      ❌    ld: symbol(s) not found for architecture arm64
      

      Is it trying to link IPP to all binaries instead of only x64?

      Dan Korneff - Producer / Mixer / Audio Nerd

      A Fortune 2 Replies Last reply Reply Quote 0
      • d.healey
        d.healey last edited by

        I'm guessing you need to install an ARM version of IPP.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • Dan Korneff
          Dan Korneff last edited by

          from what I've read online:

          Some parts of Intel libraries have no equivalent on MacOS M1 - and Intel has stated they will not be "ported" since they are optimized for Intel CPUs.
          

          Dan Korneff - Producer / Mixer / Audio Nerd

          1 Reply Last reply Reply Quote 0
          • Christoph Hart
            Christoph Hart last edited by

            Yeah you don‘t need IPP on M1s anyway, the apple stuff is fast enough.

            Dan Korneff 2 Replies Last reply Reply Quote 2
            • Dan Korneff
              Dan Korneff @Christoph Hart last edited by

              @Christoph-Hart said in ARM/Intel Universal Binary... how?:

              you don‘t need IPP on M1s anyway,

              agreed... but I'm trying to create a Universal Binary on my M1 that can utilize IPP on x64 intel processors

              Dan Korneff - Producer / Mixer / Audio Nerd

              d.healey 1 Reply Last reply Reply Quote 0
              • d.healey
                d.healey @Dan Korneff last edited by

                @dustbro You'll have to create a separate binary for Intel (presumably on an Intel machine) or live without IPP.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                1 Reply Last reply Reply Quote 1
                • Dan Korneff
                  Dan Korneff @Christoph Hart last edited by

                  @Christoph-Hart said in ARM/Intel Universal Binary... how?:

                  the apple stuff is fast enough

                  Maybe not? Checking out the ARM compiled plugin with a convolution plugin is giving me warnings in debug mode.

                  ### PerformanceWarning
                  -Time: **0.70**   /CallbackIndex: **60**
                  -Location: 'Convolution::ConvolutionRendering'
                  -Voice Amount: **0**
                  -Limit: '10.0%'  Avg: '2.07%', Peak: '11.0%'
                  

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  S 1 Reply Last reply Reply Quote 0
                  • Christoph Hart
                    Christoph Hart last edited by

                    How big is the IR?

                    Dan Korneff 1 Reply Last reply Reply Quote 0
                    • Dan Korneff
                      Dan Korneff @Christoph Hart last edited by

                      @Christoph-Hart 1.7mb

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      1 Reply Last reply Reply Quote 0
                      • Christoph Hart
                        Christoph Hart last edited by

                        Hmm, that's reasonable. Are you actually hitting dropouts? because the debug log warnings are very verbose and a occasional peak of 10% CPU usage isn't too critical.

                        Dan Korneff 1 Reply Last reply Reply Quote 0
                        • Dan Korneff
                          Dan Korneff @Christoph Hart last edited by

                          @Christoph-Hart good question. Gonna do more testing today

                          Dan Korneff - Producer / Mixer / Audio Nerd

                          1 Reply Last reply Reply Quote 0
                          • orange
                            orange last edited by

                            So it is impossible to make an IPP enabled universal binary (both for M1 & Intel) with a M1 mac, right?

                            But we can do that with an intel mac?

                            develop Branch / XCode 13.1
                            macOS Monterey / M1 Max

                            Dan Korneff 1 Reply Last reply Reply Quote 0
                            • Dan Korneff
                              Dan Korneff @orange last edited by

                              @orange I'm not sure. I gotta fire up my Intel Mac and see what's up. Also ran into some weirdness with Packages on my M1 so it looks like I gotta make my installers with the intel mac as well.

                              Dan Korneff - Producer / Mixer / Audio Nerd

                              orange 2 Replies Last reply Reply Quote 1
                              • orange
                                orange @Dan Korneff last edited by

                                @dustbro It's interesting that VST3 files (turns into folders) can be a problem with Packages in M1 macs.

                                develop Branch / XCode 13.1
                                macOS Monterey / M1 Max

                                1 Reply Last reply Reply Quote 0
                                • orange
                                  orange @Dan Korneff last edited by

                                  @dustbro Have you checked M1 universal binary inside the Intel mac?

                                  Is develop branch successful for M1?

                                  develop Branch / XCode 13.1
                                  macOS Monterey / M1 Max

                                  Dan Korneff 1 Reply Last reply Reply Quote 1
                                  • Dan Korneff
                                    Dan Korneff @orange last edited by

                                    @orange said in ARM/Intel Universal Binary... how?:

                                    Have you checked M1 universal binary inside the Intel mac?
                                    Is develop branch successful for M1?

                                    I haven't yet. I'll probably be ready to do more testing in about a week.

                                    Dan Korneff - Producer / Mixer / Audio Nerd

                                    1 Reply Last reply Reply Quote 1
                                    • ustk
                                      ustk last edited by

                                      I hope we will soon be able to use XCode 12.2 to 12.4 from non OS11 compatible machines, so we can export Universal Binaries from Intel.
                                      Otherwise, the only solution would be to buy an OS11 computer (with or without M1, but you know how it is...)

                                      I can't help pressing F5 in the forum...

                                      1 Reply Last reply Reply Quote 1
                                      • A
                                        arminh @Dan Korneff last edited by arminh

                                        @dustbro hey, which new_layout commit you use because I can't force my setup to even compile app 😧

                                        Dan Korneff 1 Reply Last reply Reply Quote 0
                                        • Dan Korneff
                                          Dan Korneff @arminh last edited by

                                          @arminh the one from about 10 days ago

                                          Dan Korneff - Producer / Mixer / Audio Nerd

                                          A 1 Reply Last reply Reply Quote 0
                                          • A
                                            arminh @Dan Korneff last edited by

                                            @dustbro I'm out of ideas ...

                                            I tried compile this commit

                                            https://github.com/christophhart/HISE/tree/27a94f3e11615fcfa793a9ec58ac531a75de5c7f
                                            

                                            But I'm getting a lot of issues
                                            alt text

                                            orange 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            3
                                            Online

                                            1.1k
                                            Users

                                            7.0k
                                            Topics

                                            64.7k
                                            Posts