Giter Site home page Giter Site logo

3343 / edge Goto Github PK

View Code? Open in Web Editor NEW
36.0 3.0 20.0 3.39 MB

Extreme-scale Discontinuous Galerkin Environment (EDGE)

Home Page: https://dial3343.org

Python 13.77% C++ 76.37% PHP 0.36% Shell 1.04% CMake 0.01% C 0.33% Pawn 0.24% Jupyter Notebook 1.97% Mathematica 2.20% R 0.05% Pascal 0.42% POV-Ray SDL 3.05% Nunjucks 0.11% JavaScript 0.06%
discontinuous-galerkin finite-element-method high-performance-computing seismic-waves earthquake fused-simulations scientific-computing mpi openmp simd

edge's People

Contributors

alheinecke avatar breuera avatar dclenz avatar geoffreyqiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

edge's Issues

EDGE-V: Usability

As discussed in PR #2:

  1. In anticipation of larger meshes, its better to have a typedef for all mesh-specific integral types, such that we can easily replace the ints by longs in future
  2. Lets get rid of the using namespace std and using namespace moab.
  3. Same goes for preprocessor macros. E.g., std::min() works fine for #define min(X, Y) (((X) < (Y)) ? (X) : (Y)).
  4. As far as I know, MOAB's sparse type MB_TAG_SPARSE should be used when only a few entities hold the tag. Since we assign velocities to all elements, dense is probably better.

GOMP: Thread ids and numa-aware inits

EDGE's numa-aware inits through OMP's num_threads:

#pragma omp parallel for num_threads( std::max( edge::parallel::g_nThreads-1, 1 ) )

#pragma omp parallel for num_threads( std::max( parallel::g_nThreads-1, 1 ) )

#pragma omp parallel for num_threads( std::max( parallel::g_nThreads-1, 1 ) )

reset the thread-id of the last thread to zero:

int edge::parallel::g_thread = 0;


Bug appears in GCC toolchain (4.9.2-10 and 5.3.0).
icpc (18.0.0 20170811) and clang++ (4.0.1) with iomp work fine.


Reproducer attached:

alex@deb:~/debug$ g++ -fopenmp global.cpp numt.cpp 
alex@deb:~/debug$ OMP_NUM_THREADS=3 ./a.out running
setting g_thread
printing g_thread
3 0
3 1
3 2
working on some side-effects..............................
printing g_thread
3 1
3 0
3 0
-bash-4.2$ icpc -fopenmp global.cpp numt.cpp 
-bash-4.2$ OMP_NUM_THREADS=3 ./a.out 
running
setting g_thread
printing g_thread
3 2
3 0
3 1
working on some side-effects..............................
printing g_thread
3 1
3 0
3 2

debug.zip

Building with GCC 7 fails with -Werror=implicit-fallthrough

Building from Master with GCC 7 and later fails due to a combination of -Wextra and -Werror. Since GCC 7, -Wextra emits the warning -Wimplicit-fallthrough= when a switch-case block is missing a "break" at the end of each case.

The submodule pugixml seems to have this issue, GCC apparently takes issue with a switch block, sends out the warning, and the terminates due to -Werror.

This can be suppressed by compiling with the flag -Wimplicit-fallthrough=0.

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.