GithubHelp home page GithubHelp logo

Comments (7)

Leont avatar Leont commented on August 11, 2024 1

Yeah, by default it compiles with native optimizations, but when packaging that may not be appropriate because target systems may lack instruction sets that the build system does have (e.g. AVX2/AVX512). Debian patches this logic out, it sounds like you want to do the same.

from crypt-argon2.

level420 avatar level420 commented on August 11, 2024

@Leont I've been also struggling when creating a docker image based on the official perl 5.38 debian bookworm image, where I've simply added cpanm Crypt::Argon2 to the Dockerfile. Then I've tested everything thoroughly on several development and staging servers, just to find out that it doesn't work on our production servers.

Would It be possible to have some env variable which could be set to disable the -march-native flag?

from crypt-argon2.

level420 avatar level420 commented on August 11, 2024

Just found commit 356eaa4 where this is already implemented via environment variable CRYPT_ARGON2_ARCH.

I think it would be helpful for others if this is documented and found via e.g. metacpan.org

from crypt-argon2.

Leont avatar Leont commented on August 11, 2024

I think it would be helpful for others if this is documented and found via e.g. metacpan.org

That is a very reasonable point.

from crypt-argon2.

Leont avatar Leont commented on August 11, 2024

I have just release a trial version that implements runtime implementation switching. Testing (e.g. cpanm LEONT/Crypt-Argon2-0.024-TRIAL.tar.gz) in a wide variety of environments would be much appreciated.

from crypt-argon2.

level420 avatar level420 commented on August 11, 2024

@Leont does this mean that when now installing via cpanm LEONT/Crypt-Argon2-0.023-TRIAL.tar.gz the default is not to set the -arch compiler flag?

from crypt-argon2.

Leont avatar Leont commented on August 11, 2024

@Leont does this mean that when now installing via cpanm LEONT/Crypt-Argon2-0.023-TRIAL.tar.gz the default is not to set the -arch compiler flag?

It compiles versions with and without arch, and at runtime checks which ones are supported on that CPU :-)

from crypt-argon2.

Related Issues (9)

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.