GithubHelp home page GithubHelp logo

macOS_arm64 build about xnnpack HOT 5 CLOSED

google avatar google commented on May 20, 2024
macOS_arm64 build

from xnnpack.

Comments (5)

Maratyszcza avatar Maratyszcza commented on May 20, 2024 1

These changes should be sufficient

from xnnpack.

simonmaurer avatar simonmaurer commented on May 20, 2024

any feedback with respect to this?

from xnnpack.

Maratyszcza avatar Maratyszcza commented on May 20, 2024

Bazel build for ARM64 Mac is currently not supported. CMake build should work.

from xnnpack.

simonmaurer avatar simonmaurer commented on May 20, 2024

@Maratyszcza okay thanks for the feedback. issued a pull request in the official TensorFlow repo to allow building on platform macos_arm64 using cmake.

could you give me a hint on where to make changes to allow bazel builds ? already modified the following files:
bazel.rc, BUILD.bazel, build_defs.bzl, third_party/cpuinfo.BUILD, see the changes (inspired by this commit in the official TF repo)

from xnnpack.

simonmaurer avatar simonmaurer commented on May 20, 2024

PR to resolve this.
allows compilation for macos_arm64on M1 host using:

bazel build -c opt --config=macos_arm64 :end2end_bench

cross compilation on other platforms (e.g. Linux or macOS_x86-64) does not work yet due to missing toolchains.
at least I get the following errors when building on a macOS_x86-64 platform for macos_arm64:

ERROR: /private/var/tmp/**/**/external/local_config_cc/BUILD:48:19: in cc_toolchain_suite rule @local_config_cc//:toolchain: cc_toolchain_suite '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'darwin_arm64' INFO: Repository cpuinfo instantiated at: /**/**/**/**/xnnpack_simonmaurer/WORKSPACE:66:13: in <toplevel> Repository rule http_archive defined at: /private/var/tmp/**/**/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel> ERROR: Analysis of target '//:end2end_bench' failed; build aborted: Analysis of target '@local_config_cc//:toolchain' failed

from xnnpack.

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.