madd not found

Create issue
Issue #1848 closed
Steven R. Brandt created an issue

I get numerous errors of the form

/home/sbrandt/cactus/CactusFW/arrangements/Carpet/CarpetLib/src/prolongate_3d_rf2.cc:249:26: error: ‘madd’ is not a member of ‘VP {aka vecprops<double>}’

when trying to compile on my laptop usign gcc 5.1.1

Keyword:

Comments (4)

  1. Steven R. Brandt reporter
    • removed comment

    Update.... Getting rid of -march=x86_64 does not help. Neither does adding -march=native.

    It appears the relevant definition of vecprops comes from arrangements/LSUThorns/Vectors/src/vectors.h, and it does not contain madd().

  2. Erik Schnetter
    • removed comment

    The current version of this thorn lives now in CactusUtils/Vectors.

    madd is defined unconditionally when compiled by a C++ compiler.

    From your preprocessor output I conclude: - you are building on a 64-bit Intel system - you have SSE2, but no other CPU features, corresponding to a bare-bones 64-bit Intel CPU - you are building with a C++ compiler - CCTK_REAL8 is double

    Everything should be working. This is not a fancy feature.

    Can you look at the new version of the thorn?

  3. Log in to comment