• Categories
  • Dark Theme
  • Register
  • Login
HISE Logo Forum
  • Categories
  • Dark Theme
  • Register
  • Login

ARM/Intel Universal Binary... how?

Scheduled Pinned Locked Moved Bug Reports
36 Posts 8 Posters 2.3k Views
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 KorneffD
    Dan Korneff
    last edited by 26 Oct 2021, 20:05

    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 FortuneF 2 Replies Last reply 5 Nov 2021, 09:14 Reply Quote 0
    • d.healeyD
      d.healey
      last edited by 26 Oct 2021, 20:26

      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 KorneffD
        Dan Korneff
        last edited by 26 Oct 2021, 20:50

        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 HartC
          Christoph Hart
          last edited by 26 Oct 2021, 20:52

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

          Dan KorneffD 2 Replies Last reply 26 Oct 2021, 20:54 Reply Quote 2
          • Dan KorneffD
            Dan Korneff @Christoph Hart
            last edited by 26 Oct 2021, 20:54

            @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.healeyD 1 Reply Last reply 26 Oct 2021, 20:56 Reply Quote 0
            • d.healeyD
              d.healey @Dan Korneff
              last edited by 26 Oct 2021, 20:56

              @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 KorneffD
                Dan Korneff @Christoph Hart
                last edited by 26 Oct 2021, 20:59

                @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

                ? 1 Reply Last reply 6 Nov 2021, 10:59 Reply Quote 0
                • Christoph HartC
                  Christoph Hart
                  last edited by 26 Oct 2021, 21:20

                  How big is the IR?

                  Dan KorneffD 1 Reply Last reply 26 Oct 2021, 21:58 Reply Quote 0
                  • Dan KorneffD
                    Dan Korneff @Christoph Hart
                    last edited by 26 Oct 2021, 21:58

                    @Christoph-Hart 1.7mb

                    Dan Korneff - Producer / Mixer / Audio Nerd

                    1 Reply Last reply Reply Quote 0
                    • Christoph HartC
                      Christoph Hart
                      last edited by 27 Oct 2021, 11:47

                      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 KorneffD 1 Reply Last reply 27 Oct 2021, 13:24 Reply Quote 0
                      • Dan KorneffD
                        Dan Korneff @Christoph Hart
                        last edited by 27 Oct 2021, 13:24

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

                        Dan Korneff - Producer / Mixer / Audio Nerd

                        1 Reply Last reply Reply Quote 0
                        • orangeO
                          orange
                          last edited by 28 Oct 2021, 19:49

                          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 KorneffD 1 Reply Last reply 28 Oct 2021, 20:40 Reply Quote 0
                          • Dan KorneffD
                            Dan Korneff @orange
                            last edited by 28 Oct 2021, 20:40

                            @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

                            orangeO 2 Replies Last reply 28 Oct 2021, 21:09 Reply Quote 1
                            • orangeO
                              orange @Dan Korneff
                              last edited by 28 Oct 2021, 21:09

                              @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
                              • orangeO
                                orange @Dan Korneff
                                last edited by 4 Nov 2021, 13:02

                                @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 KorneffD 1 Reply Last reply 4 Nov 2021, 14:22 Reply Quote 1
                                • Dan KorneffD
                                  Dan Korneff @orange
                                  last edited by 4 Nov 2021, 14:22

                                  @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
                                  • ustkU
                                    ustk
                                    last edited by 4 Nov 2021, 14:52

                                    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...)

                                    Can't help pressing F5 in the forum...

                                    1 Reply Last reply Reply Quote 1
                                    • A
                                      arminh @Dan Korneff
                                      last edited by arminh 11 May 2021, 09:14 5 Nov 2021, 09:14

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

                                      Dan KorneffD 1 Reply Last reply 5 Nov 2021, 10:29 Reply Quote 0
                                      • Dan KorneffD
                                        Dan Korneff @arminh
                                        last edited by 5 Nov 2021, 10:29

                                        @arminh the one from about 10 days ago

                                        Dan Korneff - Producer / Mixer / Audio Nerd

                                        A 1 Reply Last reply 5 Nov 2021, 13:47 Reply Quote 0
                                        • A
                                          arminh @Dan Korneff
                                          last edited by 5 Nov 2021, 13:47

                                          @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

                                          orangeO 1 Reply Last reply 5 Nov 2021, 14:35 Reply Quote 0
                                          6 out of 36
                                          • First post
                                            Last post

                                          30

                                          Online

                                          1.9k

                                          Users

                                          10.8k

                                          Topics

                                          94.3k

                                          Posts

                                          Looks like your connection to Forum was lost, please wait while we try to reconnect.