Compiler flags for code optimization for portable and fast code | Scientific computing & HPC

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024
  • In this video I will introduce the -O compiler flag for code optimization, letting the compiler optimize the code will lead you to more portable, readable and maintainable code without loosing performance.
    This video appeals to who is approaching HPC, code optimization, and scientific computing in C and Fortran
    Contacts and Links:
    Patreon
    / thecomputationalchemist
    Facebook
    / thecomputationalchemist
    Instagram
    / thecomputationalchemist
    Feel free to leave a feedback in the comments
    If you would like to reach out to me you can do it via social media

ความคิดเห็น • 4

  • @jayaprakash7959
    @jayaprakash7959 8 หลายเดือนก่อน +1

    this is what i expected and searched a long way

  • @chaikinlecahi
    @chaikinlecahi 3 หลายเดือนก่อน +1

    would your explain this commnad line for detial?./configure CFLAGS="-03 -march=armv8-a+crypto -mcpu=cortex-a53" --with-curl --with-crypto

    • @thecomputationalchemist
      @thecomputationalchemist  2 หลายเดือนก่อน

      Hi, those seem like CMake flags, it looks like you are describing the level of optimization of the code you are looking for -O3 and then there are some info about the CPU and the computer architecture.
      In any case this stuff varies a lot from program to program, so the best thing is to always read the documentation where the relevant CMake options should be described in detail.