Commit 2154aa0e authored by James Willis's avatar James Willis
Browse files

Added extra debug for vectorised version.

parent 12070bbc
......@@ -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("\nSerial 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("\nVector Output for VEC_SIZE=%d\n",VEC_SIZE);
printf("-------------\n");
for (int i = 0; i < numPoints + 1; i+=VEC_SIZE) {
......
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