Commit e0177f4e authored by James Willis's avatar James Willis
Browse files

Formatting.

parent 72890b8e
...@@ -109,7 +109,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_density( ...@@ -109,7 +109,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_density(
__attribute__((always_inline)) INLINE static void runner_iact_vec_density( __attribute__((always_inline)) INLINE static void runner_iact_vec_density(
float *R2, float *Dx, float *Hi, float *Hj, struct part **pi, float *R2, float *Dx, float *Hi, float *Hj, struct part **pi,
struct part **pj) { struct part **pj) {
error("A vectorised version of the Gadget2 density interaction function does not exist yet! Configure with '--disable-vec' to call the non-vectorised version.") error(
"A vectorised version of the Gadget2 density interaction function does "
"not exist yet! Configure with '--disable-vec' to call the "
"non-vectorised version.")
} }
/** /**
...@@ -166,7 +169,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_nonsym_density( ...@@ -166,7 +169,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_nonsym_density(
__attribute__((always_inline)) INLINE static void __attribute__((always_inline)) INLINE static void
runner_iact_nonsym_vec_density(float *R2, float *Dx, float *Hi, float *Hj, runner_iact_nonsym_vec_density(float *R2, float *Dx, float *Hi, float *Hj,
struct part **pi, struct part **pj) { struct part **pi, struct part **pj) {
error("A vectorised version of the Gadget2 non-symmetric density interaction function does not exist yet! Configure with '--disable-vec' to call the non-vectorised version.") error(
"A vectorised version of the Gadget2 non-symmetric density interaction "
"function does not exist yet! Configure with '--disable-vec' to call the "
"non-vectorised version.")
} }
/** /**
...@@ -272,7 +278,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_force( ...@@ -272,7 +278,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_force(
__attribute__((always_inline)) INLINE static void runner_iact_vec_force( __attribute__((always_inline)) INLINE static void runner_iact_vec_force(
float *R2, float *Dx, float *Hi, float *Hj, struct part **pi, float *R2, float *Dx, float *Hi, float *Hj, struct part **pi,
struct part **pj) { struct part **pj) {
error("A vectorised version of the Gadget2 force interaction function does not exist yet! Configure with '--disable-vec' to call the non-vectorised version.") error(
"A vectorised version of the Gadget2 force interaction function does not "
"exist yet! Configure with '--disable-vec' to call the non-vectorised "
"version.")
} }
/** /**
...@@ -371,7 +380,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_nonsym_force( ...@@ -371,7 +380,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_nonsym_force(
__attribute__((always_inline)) INLINE static void runner_iact_nonsym_vec_force( __attribute__((always_inline)) INLINE static void runner_iact_nonsym_vec_force(
float *R2, float *Dx, float *Hi, float *Hj, struct part **pi, float *R2, float *Dx, float *Hi, float *Hj, struct part **pi,
struct part **pj) { struct part **pj) {
error("A vectorised version of the Gadget2 non-symmetric density interaction function does not exist yet! Configure with '--disable-vec' to call the non-vectorised version.") error(
"A vectorised version of the Gadget2 non-symmetric density interaction "
"function does not exist yet! Configure with '--disable-vec' to call the "
"non-vectorised version.")
} }
#endif /* SWIFT_RUNNER_IACT_LEGACY_H */ #endif /* SWIFT_RUNNER_IACT_LEGACY_H */
...@@ -67,7 +67,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_density( ...@@ -67,7 +67,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_density(
__attribute__((always_inline)) INLINE static void runner_iact_vec_density( __attribute__((always_inline)) INLINE static void runner_iact_vec_density(
float *R2, float *Dx, float *Hi, float *Hj, struct part **pi, float *R2, float *Dx, float *Hi, float *Hj, struct part **pi,
struct part **pj) { struct part **pj) {
error("A vectorised version of the Minimal density interaction function does not exist yet! Configure with '--disable-vec' to call the non-vectorised version.") error(
"A vectorised version of the Minimal density interaction function does "
"not exist yet! Configure with '--disable-vec' to call the "
"non-vectorised version.")
} }
/** /**
...@@ -100,7 +103,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_nonsym_density( ...@@ -100,7 +103,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_nonsym_density(
__attribute__((always_inline)) INLINE static void __attribute__((always_inline)) INLINE static void
runner_iact_nonsym_vec_density(float *R2, float *Dx, float *Hi, float *Hj, runner_iact_nonsym_vec_density(float *R2, float *Dx, float *Hi, float *Hj,
struct part **pi, struct part **pj) { struct part **pi, struct part **pj) {
error("A vectorised version of the Minimal non-symmetric density interaction function does not exist yet! Configure with '--disable-vec' to call the non-vectorised version.") error(
"A vectorised version of the Minimal non-symmetric density interaction "
"function does not exist yet! Configure with '--disable-vec' to call the "
"non-vectorised version.")
} }
/** /**
...@@ -181,7 +187,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_force( ...@@ -181,7 +187,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_force(
__attribute__((always_inline)) INLINE static void runner_iact_vec_force( __attribute__((always_inline)) INLINE static void runner_iact_vec_force(
float *R2, float *Dx, float *Hi, float *Hj, struct part **pi, float *R2, float *Dx, float *Hi, float *Hj, struct part **pi,
struct part **pj) { struct part **pj) {
error("A vectorised version of the Minimal force interaction function does not exist yet! Configure with '--disable-vec' to call the non-vectorised version.") error(
"A vectorised version of the Minimal force interaction function does not "
"exist yet! Configure with '--disable-vec' to call the non-vectorised "
"version.")
} }
/** /**
...@@ -255,8 +264,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_nonsym_force( ...@@ -255,8 +264,10 @@ __attribute__((always_inline)) INLINE static void runner_iact_nonsym_force(
__attribute__((always_inline)) INLINE static void runner_iact_nonsym_vec_force( __attribute__((always_inline)) INLINE static void runner_iact_nonsym_vec_force(
float *R2, float *Dx, float *Hi, float *Hj, struct part **pi, float *R2, float *Dx, float *Hi, float *Hj, struct part **pi,
struct part **pj) { struct part **pj) {
error("A vectorised version of the Minimal non-symmetric density interaction function does not exist yet! Configure with '--disable-vec' to call the non-vectorised version.") error(
"A vectorised version of the Minimal non-symmetric density interaction "
"function does not exist yet! Configure with '--disable-vec' to call the "
"non-vectorised version.")
} }
#endif /* SWIFT_RUNNER_IACT_MINIMAL_H */ #endif /* SWIFT_RUNNER_IACT_MINIMAL_H */
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
__attribute__((vector_size((elcount) * sizeof(type)))) type __attribute__((vector_size((elcount) * sizeof(type)))) type
/* So what will the vector size be? */ /* So what will the vector size be? */
#ifdef HAVE_AVX512_F #ifdef HAVE_AVX512_F
#define VEC_HAVE_GATHER #define VEC_HAVE_GATHER
#define VEC_SIZE 16 #define VEC_SIZE 16
#define VEC_FLOAT __m512 #define VEC_FLOAT __m512
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment