GithubHelp home page GithubHelp logo

Comments (6)

davidkoski avatar davidkoski commented on August 15, 2024 1

Yeah, I think previously the mlx-swift side didn't include the accelerate back end:

https://github.com/ml-explore/mlx-swift/blob/main/Package.swift#L78

(these are files not to build)

                // opt-out of these backends (using metal)
                "mlx/mlx/backend/no_metal",
                "mlx/mlx/backend/accelerate",

When I prepared the build for v0.14.0 I had to revamp the build quite a bit to deal with the JIT and I reconciled what CMake does with the swiftpm build.

So you are right, it has probably been like this for a while but we were not using it and so had not seen this.

from mlx.

awni avatar awni commented on August 15, 2024

@davidkoski can you share some steps for how to reproduce this? I'm building mlx-swift main using Xcode 15.3 and macOS 14.5 and the build is fine. Do you only get the error on 14.4? Or do I need to build something specific to see the issue?

from mlx.

davidkoski avatar davidkoski commented on August 15, 2024

The easiest is to try building this branch for iOS:

You will to change various vecLib includes:

- #include <vecLib/vDSP.h>
+ #include <Accelerate.h>

but those are trivial

from mlx.

davidkoski avatar davidkoski commented on August 15, 2024

I am using Xcode 15.3 on macOS 14.4 but I don't think it is environment dependent -- the key is building for iOS.

from mlx.

awni avatar awni commented on August 15, 2024

Thanks I can reproduce it now. I'm a little confused by what's going on here. The code that is failing has been there for a while now.. so any idea what changed that broke the compilation?

from mlx.

awni avatar awni commented on August 15, 2024

This is safe to close I believe.

from mlx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.