GithubHelp home page GithubHelp logo

M1 Support about fast-cma-es HOT 3 CLOSED

dietmarwo avatar dietmarwo commented on July 22, 2024
M1 Support

from fast-cma-es.

Comments (3)

dietmarwo avatar dietmarwo commented on July 22, 2024

Don't think that it is possible to use the C++ algorithms on M1 at the moment without rosetta (the arm64 emulator). My plan is to port fcmaes to Rust, then it should be easy to compile it on any platform. Will take some time. But you may use the pure Python algorithms.

from fast-cma-es.

dietmarwo avatar dietmarwo commented on July 22, 2024

Update for fcmaes version 1.5.8 recently released (pip install fcmaes --upgrade):

Pure Python versions of the algorithms are now usable also for parallel retry. Pure Python features: Algorithms: CMA-ES, CR-FM-NES, DE, MODE (multiple objective), Map-Elites+Diversifier (quality diversity). All Python algorithms support an ask-tell interface and parallel function evaluation. Additionally parallel retry / advanced retry (smart boundary management) are supported for these algorithms.

You may have to delete
/opt/homebrew/Caskroom/miniforge/base/envs/petri/lib/python3.9/site-packages/fcmaes/lib/libacmalib.dll
to avoid the error you get.

According to
https://stackoverflow.com/questions/65970469/what-does-platform-system-and-platform-architecture-return-on-apple-m1-silic

I would have expected that

elif 'mac' in sys.platform or 'darwin' in sys.platform:
libcmalib = ct.cdll.LoadLibrary(basepath + '/lib/libacmalib.dylib')

should have been loaded. Since I have no mac this shared library file is slightly outdated and would anyway only work under rosetta (the arm64 emulator on the M1). It is probably better to avoid the C++ algorithms on M1.

from fast-cma-es.

iyzg avatar iyzg commented on July 22, 2024

That seems to have done the trick! Thanks so much for the help :)

from fast-cma-es.

Related Issues (13)

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.