Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA exception handling #4095

Merged
merged 22 commits into from
Jan 29, 2021
Merged

Commits on Jan 15, 2021

  1. Configuration menu
    Copy the full SHA
    e2e7952 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    537206d View commit details
    Browse the repository at this point in the history
  3. core: Rename CUDA header file

    This header file can only be used in CUDA source files.
    jngrad committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    5b8e575 View commit details
    Browse the repository at this point in the history
  4. core: Introduce exception mechanism for CUDA code

    Utility CUDA functions now throw a runtime error wrapping the CUDA
    error message when a primitive CUDA function returns an error code.
    
    The LB GPU checking function gpu_init_particle_comm() was rewritten
    to check the currently selected GPU instead of the one with ID 0.
    The warning about insufficient compute capability was converted
    to an error message. The warning about default GPU ID was removed.
    The Python-specific message was removed. The function now calls
    std::abort() upon any error since we cannot recover from it in
    the Python interface (the list of actors cannot be cleared due to
    a mismatch between `Actor` and `Actors` regarding active actors).
    
    The dipolar Barnes-Hut code now exits early upon any CUDA error to
    avoid undefined behavior in memory allocation on the GPU.
    jngrad committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    11d9489 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fe8ddaa View commit details
    Browse the repository at this point in the history
  6. core: Simplify code involving EspressoGpuDevice

    Also fix the type of the memory field to avoid integer overflow.
    jngrad committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    d8aeff0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5003b3d View commit details
    Browse the repository at this point in the history
  8. core: Modernize MPI function

    jngrad committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    a915aa8 View commit details
    Browse the repository at this point in the history
  9. core: Improve doxygen documentation

    Convert regular comments to doxygen comments where appropriate,
    document function arguments, remove duplicate doxygen blocks.
    jngrad committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    c49f7a6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9f465c1 View commit details
    Browse the repository at this point in the history
  11. python: Fix unnecessary fatal exceptions

    `import espressomd` shouldn't fail on a machine without GPU when
    CUDA is compiled in.
    jngrad committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    655b8b9 View commit details
    Browse the repository at this point in the history
  12. tests: Check CUDA exceptions

    jngrad committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    72ce6e3 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0262c7f View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2021

  1. Configuration menu
    Copy the full SHA
    51086fd View commit details
    Browse the repository at this point in the history
  2. core: Remove code duplication

    jngrad committed Jan 21, 2021
    Configuration menu
    Copy the full SHA
    cb298f6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    901c2e7 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2021

  1. Configuration menu
    Copy the full SHA
    8c814aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    55ed518 View commit details
    Browse the repository at this point in the history
  3. python: Fix typo

    jngrad committed Jan 22, 2021
    Configuration menu
    Copy the full SHA
    12f6ea2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8c949d0 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2021

  1. core: Rename functions

    jngrad committed Jan 25, 2021
    Configuration menu
    Copy the full SHA
    6fb98bd View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2021

  1. Configuration menu
    Copy the full SHA
    2f17f89 View commit details
    Browse the repository at this point in the history