Skip to content
Snippets Groups Projects

Run FlameMaster with memory sanitizer on Ubuntu 19

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Raymond Langer
    Edited
    snippetfile1.txt 1.64 KiB
    CC=/usr/bin/clang CXX=/usr/bin/clang++ CPPFLAGS=-I/home/rlanger/code/libraries/llvm-project/build/include/c++/v1/ LDFLAGS="-L/home/rlanger/code/libraries/llvm-project/build/lib -Wl,-rpath,/home/rlanger/code/libraries/llvm-project/build/lib -lc++abi " cmake ../Repository -DCMAKE_BUILD_TYPE=Debug -DCOMPILE_FORTRAN_SRC=ON -DINSTALL_SUNDIALS=ON -DCMAKE_CXX_FLAGS="-stdlib=libc++"  -DCMAKE_CXX_FLAGS=" -stdlib=libc++ -g -fsanitize=undefined,memory  -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer -O1 -fsanitize-recover=all" -DCMAKE_C_FLAGS="-g -fsanitize=undefined,memory  -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer -O1 -fsanitize-recover=all"
    
    
    # On laputa
    
    
    CC="$HOME/software/llvm/llvm-project/build/bin/clang" CXX="$HOME/software/llvm/llvm-project/build/bin/clang++" LDFLAGS="-L$HOME/software/llvm/llvm-project/build/lib -Wl,-rpath,$HOME/software/llvm/llvm-project/build/lib -lc++abi" cmake ../Repository -DCMAKE_BUILD_TYPE=Debug -DCOMPILE_FORTRAN_SRC=ON -DINSTALL_SUNDIALS=ON -DCMAKE_CXX_FLAGS="-I$HOME/software/llvm/llvm-project/build/include/c++/v1/ -I$HOME/software/llvm/llvm-project/build/projects/openmp/runtime/src/ -stdlib=libc++ -g -fsanitize=undefined,address -fno-omit-frame-pointer -O1 -fsanitize-recover=all" -DCMAKE_C_FLAGS="-I$HOME/software/llvm/llvm-project/build/projects/openmp/runtime/src/ -g -fsanitize=undefined,address -fno-omit-frame-pointer -O1 -fsanitize-recover=all"  -DEIGEN_INTEGRATION=ON -DCOMBUSTION_LIBS=ON -DCMAKE_CXX_FLAGS_RELEASE="-Ofast -ffast-math -DNDEBUG -march=native" -DCMAKE_C_FLAGS_RELEASE="-Ofast -ffast-math -DNDEBUG -march=native" -DCMAKE_Fortran_FLAGS_RELEASE="-Ofast -march=native" -DFAST_COLLISION_INTEGRAL=ON
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment