I have to figure that that’s intentional? I can’t remember how this worked on Amber 16 (the last one I personally built). Set(CMAKE_CXX_FLAGS_DEBUG "-g -debug all") It’s applied on both the Fortran and C sections, but you can see the difference here with the CXX flags: My remaining question is if it’s on purpose that this does not affect the CXX flags. Realized I could probably get an answer faster through experimentation, and so I discovered that I can add -DSSE_TYPES= to the run_cmake file and that works. run_cmake, or if I set those with -D inside the run_cmake script, or what. It works if I use addcompileoptions and addlinkoptions. Now I’m wondering what the best way is to add those flags. Same goes for the variables you suggest them, but I’m not clear if I should set those like: OPT_CFLAGS="-O3 -xAVX -axCORE-AVX2”. I’m writing a toolchain file to cross-compile and I need to set some compiler flags (e.g. What’s not clear to me is where to set those? From reading that file, it looks like I could still set SSE_TYPES and the section of that file around the Intel compiler would make use of it. Look in the amber20_src/cmake/CompilerFlags.cmake file > I think you want to set OPT_CFLAGS, OPT_FFLAGS (and, if needed NO_OPT_CFLAGS > -DCMAKE_FORTRAN_FLAGS="-O3 -xAVX -axCORE-AVX2" -DCMAKE_EXE_LINKER_FLAGS="-O3 -xAVX -axCORE-AVX2" \ > -DCMAKE_C_FLAGS="-O3 -xAVX -axCORE-AVX2" -DCMAKE_CXX_FLAGS="-O3 -xAVX -axCORE-AVX2" \ > Trying to build with the Intel compilers and wanted to use auto vectorization, so I set: > On Sat, Sep 18, 2021, Ryan Novosielski wrote: > On Sep 19, 2021, at 8:18 AM, David A Case wrote: On Sep 19, 2021, at 3:39 PM, Ryan Novosielski wrote:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |