Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
2154aa0e
Commit
2154aa0e
authored
Apr 20, 2016
by
James Willis
Browse files
Added extra debug for vectorised version.
parent
12070bbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/testKernel.c
View file @
2154aa0e
...
...
@@ -17,14 +17,18 @@
*
******************************************************************************/
#define NO__AVX__
#include
"vector.h"
#include
"swift.h"
#include
"kernel_hydro.h"
int
main
()
{
const
float
h
=
const_eta_kernel
;
const
int
numPoints
=
16
;
const
int
numPoints
=
32
;
printf
(
"Serial Output
\n
"
);
printf
(
"
\n
Serial Output
\n
"
);
printf
(
"-------------
\n
"
);
for
(
int
i
=
0
;
i
<=
numPoints
;
++
i
)
{
...
...
@@ -36,7 +40,7 @@ int main() {
printf
(
"h= %f H= %f x=%f W(x,h)=%f dW(x,h)=%f
\n
"
,
h
,
h
*
kernel_gamma
,
x
,
W
,
dW
);
}
printf
(
"Vector Output for VEC_SIZE=%d
\n
"
,
VEC_SIZE
);
printf
(
"
\n
Vector Output for VEC_SIZE=%d
\n
"
,
VEC_SIZE
);
printf
(
"-------------
\n
"
);
for
(
int
i
=
0
;
i
<
numPoints
+
1
;
i
+=
VEC_SIZE
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment