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
21d7608f
Commit
21d7608f
authored
5 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Updates so that optimized tests run on COSMA7
intel/2018
parent
e83a5b66
No related branches found
No related tags found
1 merge request
!997
Fixes for checks on optimized AXV2 architectures
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/testActivePair.c
+2
-1
2 additions, 1 deletion
tests/testActivePair.c
tests/testCbrt.c
+1
-1
1 addition, 1 deletion
tests/testCbrt.c
tests/tolerance_27_perturbed.dat
+1
-1
1 addition, 1 deletion
tests/tolerance_27_perturbed.dat
with
4 additions
and
3 deletions
tests/testActivePair.c
+
2
−
1
View file @
21d7608f
...
...
@@ -253,7 +253,8 @@ void end_calculation_density(struct cell *c, const struct cosmology *cosmo) {
*/
void
end_calculation_force
(
struct
cell
*
c
,
const
struct
cosmology
*
cosmo
)
{
for
(
int
pid
=
0
;
pid
<
c
->
hydro
.
count
;
pid
++
)
{
hydro_end_force
(
&
c
->
hydro
.
parts
[
pid
],
cosmo
);
struct
part
*
volatile
part
=
&
c
->
hydro
.
parts
[
pid
];
hydro_end_force
(
part
,
cosmo
);
}
}
...
...
This diff is collapsed.
Click to expand it.
tests/testCbrt.c
+
1
−
1
View file @
21d7608f
...
...
@@ -50,7 +50,7 @@ int main(int argc, char *argv[]) {
message
(
"executing %i runs of each command."
,
num_vals
);
/* Create and fill an array of floats. */
float
*
data
=
(
float
*
)
malloc
(
sizeof
(
float
)
*
num_vals
);
float
*
volatile
data
=
(
float
*
)
malloc
(
sizeof
(
float
)
*
num_vals
);
for
(
int
k
=
0
;
k
<
num_vals
;
k
++
)
{
data
[
k
]
=
(
float
)
rand
()
/
RAND_MAX
;
data
[
k
]
=
(
1
.
0
f
-
data
[
k
])
*
range_min
+
data
[
k
]
*
range_max
;
...
...
This diff is collapsed.
Click to expand it.
tests/tolerance_27_perturbed.dat
+
1
−
1
View file @
21d7608f
# ID pos_x pos_y pos_z v_x v_y v_z rho rho_dh wcount wcount_dh div_v curl_vx curl_vy curl_vz
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-6 1e-4 2e-4 1e-2 1e-5 3e-6 3e-6 7e-6
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6
1.5
e-3 1e-5 2e-3 6e-5 3e-3 2e-3 2e-3
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6
3
e-3 1e-5 2e-3 6e-5 3e-3 2e-3 2e-3
0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-3 1e-6 1e0 1e-6 2e-6 2e-6 2e-6
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