Skip to content
Snippets Groups Projects
Select Git revision
  • 54c4134233ee313bcd17f6f093d8aec05f4c5a8f
  • master default protected
  • zoom-mesh-considerations
  • improve-snap-to-ic
  • darwin/sink_tasks_refactored
  • karapiperis/Bcomoving_as_a2_Bphysical
  • FS_VP_m2_allGrad
  • fstasys/VEP_Fm2
  • zoom_merge protected
  • split-space-split
  • reyz/gear_preSN_feedback
  • reyz/debug
  • darwin/gear_preSN_fbk_merge
  • darwin/gear_chemistry_fluxes
  • gas-splitting
  • stars_sidm_iact
  • karapiperis/plasma_beta_rms_in_tensile_instability_correction_taper_function
  • darwin/gear_mechanical_feedback
  • karapiperis/consistent_treatment_of_vsig_in_MHD
  • examples-GravityTests-HydroStatic-halo-issue
  • fof_props
  • v2025.10 protected
  • v2025.04 protected
  • v2025.01 protected
  • v1.0.0 protected
  • v0.9.0 protected
  • v0.8.5 protected
  • v0.8.4 protected
  • v0.8.3 protected
  • v0.8.2 protected
  • v0.8.1 protected
  • v0.8.0 protected
  • v0.7.0 protected
  • v0.6.0 protected
  • v0.5.0 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0-pre protected
  • v0.1 protected
  • v0.0 protected
41 results

swiftsim

user avatar
Matthieu Schaller authored
Macro vectorisation

Created a macro called `WITH_VECTORIZATION` in `config.h` that enables vectorisation throughout the code. Replaced all occurrences of `VECTORIZE` with `WITH_VECTORIZATION` throughout the code. Replaced compiler macros, i.e `__AVX__`,`__MIC__` with platform defined macros: `HAVE_AVX`, `HAVE_AVX512_F`... in `vector.h`.

Added place holders for vectorised versions of force and density interactions for Gadget2 and Minimal SPH schemes. An error will be displayed at runtime if the code is compiled with vectorisation enabled and using either Gadget2 or Minimal SPH schemes.

See merge request !200
54c41342
History
 Welcome to the cosmological hydrodynamical code
    ______       _________________
   / ___/ |     / /  _/ ___/_  __/
   \__ \| | /| / // // /_   / /   
  ___/ /| |/ |/ // // __/  / /    
 /____/ |__/|__/___/_/    /_/     
 SPH With Inter-dependent Fine-grained Tasking

 Website: www.swiftsim.com
 Twitter: @SwiftSimulation

See INSTALL.swift for install instructions.

Usage: swift [OPTION]... PARAMFILE
       swift_mpi [OPTION]... PARAMFILE
       swift_fixdt [OPTION]... PARAMFILE
       swift_fixdt_mpi [OPTION]... PARAMFILE

Valid options are:
  -a          Pin runners using processor affinity
  -c          Run with cosmological time integration
  -d          Dry run. Read the parameter file, allocate memory but does not read 
              the particles from ICs and exit before the start of time integration.
              Allows user to check validy of parameter and IC files as well as memory limits.
  -e          Enable floating-point exceptions (debugging mode)
  -f    {int} Overwrite the CPU frequency (Hz) to be used for time measurements
  -g          Run with an external gravitational potential
  -G          Run with self-gravity
  -n    {int} Execute a fixed number of time steps. When unset use the time_end
              parameter to stop. 
  -s          Run with SPH
  -t    {int} The number of threads to use on each MPI rank. Defaults to 1 if not specified.
  -v     [12] Increase the level of verbosity 1: MPI-rank 0 writes 
              2: All MPI-ranks write
  -y    {int} Time-step frequency at which task graphs are dumped
  -h          Print this help message and exit

See the file examples/parameter_example.yml for an example of parameter file.