Skip to content
Snippets Groups Projects

[WIP] Generic cache

Closed James Willis requested to merge generic_cache into master

Create a set of generic vectorised neighbour finding functions that are independent of the SPH flavour used.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
492 482
493 483 /* Shift the particles positions to a local frame so single precision can be
494 484 * used instead of double precision. */
485 #ifdef __ICC
495 486 #pragma simd
487 #endif
496 488 for (int i = 0; i < ci_count; i++) {
  • Matthieu Schaller
    Matthieu Schaller @matthieu started a thread on commit 8a5fbc36
  • 492 482
    493 483 /* Shift the particles positions to a local frame so single precision can be
    494 484 * used instead of double precision. */
    485 #ifdef __ICC
    495 486 #pragma simd
    487 #endif
    496 488 for (int i = 0; i < ci_count; i++) {
  • James Willis added 2 commits

    added 2 commits

    • f654a0a5 - Implemented an update and cache props list for the force interaction.
    • 926d4972 - Removed duplicate function for updating particles.

    Compare with previous version

  • James Willis added 2 commits

    added 2 commits

    • b1193128 - Use force cache props to populate cache.
    • b59ab039 - Use density cache props when populating the cache for subset interactions.

    Compare with previous version

  • James Willis added 1 commit

    added 1 commit

    • ddc59a6e - Added compiler hints and restrict keywords to auto-vectorise.

    Compare with previous version

  • James Willis added 701 commits

    added 701 commits

    Compare with previous version

  • James Willis added 1 commit

    added 1 commit

    • c43c18df - Always read the particle position and smoothing length into the cache. Defined…

    Compare with previous version

  • James Willis added 1 commit

    added 1 commit

    • d029c143 - Added pragmas the vectorise loops. Needed to specify #pragma nounroll on density

    Compare with previous version

  • James Willis added 1 commit

    added 1 commit

    • f20b5cbd - Created a macro to specify simd pragmas depending on whether they exist in the compiler.

    Compare with previous version

  • James Willis added 11 commits

    added 11 commits

    • 7d223fd7 - Created a macro 'loop' to provide alignment information to compiler for vectorisation purposes.
    • fd94282d - Updated testInteractions.c to use new vectorisation strategy and removed…
    • d2de489d - Created a generic cache to perform caching for all SPH flavours.
    • b4fd76c8 - Changed ifdef names.
    • dbe04de2 - Created a separate cache.h file to hold cache populating functions.
    • f572cfc3 - Include new files in Makefile.
    • 9a7b4b67 - Set all field arrays to MAX_NUM_OF_CACHE_FIELDS. Use correct variables in debug checks.
    • 5b58a6fd - Removed generic part of caching and moved it to generic_cache.h and cache.h.
    • 10a3e472 - Use new generic cache.
    • 654f5817 - Enclose in ifdefs for vectorisation.
    • a5d87818 - Use the generic cache in the Gadget2 hydro scheme.

    Compare with previous version

  • James Willis added 6 commits

    added 6 commits

    • caf583ad - Typo density -> force for branching functions.
    • 63d44196 - Use max number of cache fields.
    • 67f9fe6a - Added particle update functions for density and force that include explicit intrinsics.
    • 1d6c2f5a - Only need to read particle update fields before the double for loop over…
    • 1907faaa - Added particle update functions for density and force that include explicit intrinsics.
    • 717c75ae - Renamed particle update functions.

    Compare with previous version

  • James Willis added 240 commits

    added 240 commits

    • 717c75ae...b223b78f - 238 commits from branch master
    • 5b862db6 - Merge branch 'master' into generic_cache
    • c293c0df - Changed VEC_HMAX to VEC_HADD for u_dt in Minimal SPH hydro scheme.

    Compare with previous version

  • Please register or sign in to reply
    Loading