Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
2d25e38d
Commit
2d25e38d
authored
7 years ago
by
James Willis
Browse files
Options
Downloads
Patches
Plain Diff
Enclose old kernel_deval_vec in ifdefs.
parent
e615a8b9
No related branches found
No related tags found
1 merge request
!396
Avx512 fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/kernel_hydro.h
+16
-14
16 additions, 14 deletions
src/kernel_hydro.h
with
16 additions
and
14 deletions
src/kernel_hydro.h
+
16
−
14
View file @
2d25e38d
...
...
@@ -341,20 +341,7 @@ __attribute__((always_inline)) INLINE static void kernel_eval_dWdx(
/* ------------------------------------------------------------------------- */
#ifdef WITH_VECTORIZATION
static
const
vector
kernel_gamma_inv_vec
=
FILL_VEC
((
float
)
kernel_gamma_inv
);
static
const
vector
kernel_ivals_vec
=
FILL_VEC
((
float
)
kernel_ivals
);
static
const
vector
kernel_constant_vec
=
FILL_VEC
((
float
)
kernel_constant
);
static
const
vector
kernel_gamma_inv_dim_vec
=
FILL_VEC
((
float
)
kernel_gamma_inv_dim
);
static
const
vector
kernel_gamma_inv_dim_plus_one_vec
=
FILL_VEC
((
float
)
kernel_gamma_inv_dim_plus_one
);
#ifdef WITH_OLD_VECTORIZATION
/**
* @brief Computes the kernel function and its derivative (Vectorised version).
*
...
...
@@ -398,6 +385,21 @@ __attribute__((always_inline)) INLINE static void kernel_deval_vec(
dw_dx
->
v
=
vec_mul
(
dw_dx
->
v
,
vec_mul
(
kernel_constant_vec
.
v
,
kernel_gamma_inv_dim_plus_one_vec
.
v
));
}
#endif
#ifdef WITH_VECTORIZATION
static
const
vector
kernel_gamma_inv_vec
=
FILL_VEC
((
float
)
kernel_gamma_inv
);
static
const
vector
kernel_ivals_vec
=
FILL_VEC
((
float
)
kernel_ivals
);
static
const
vector
kernel_constant_vec
=
FILL_VEC
((
float
)
kernel_constant
);
static
const
vector
kernel_gamma_inv_dim_vec
=
FILL_VEC
((
float
)
kernel_gamma_inv_dim
);
static
const
vector
kernel_gamma_inv_dim_plus_one_vec
=
FILL_VEC
((
float
)
kernel_gamma_inv_dim_plus_one
);
/* Define constant vectors for the Wendland C2 and Cubic Spline kernel
* coefficients. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment