Commit edbfec87 authored by Andreas Marek's avatar Andreas Marek
Browse files

Some prints only if WITH_DEBUG is defined

parent 307618f2
......@@ -294,10 +294,12 @@ void single_hh_trafo_complex_avx_avx2_1hv_single(float complex* q, float complex
worked_on += 4;
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq) {
printf("Error in complex avx-avx2 BLOCK 1 kernel \n");
abort();
}
#endif
}
......
......@@ -265,10 +265,12 @@ void double_hh_trafo_complex_avx_avx2_2hv_single(float complex* q, float complex
worked_on += 4;
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq) {
printf("Error in complex avx-avx2 BLOCK 2 kernel \n");
abort();
}
#endif
}
#ifdef DOUBLE_PRECISION_COMPLEX
......
......@@ -268,11 +268,13 @@ void single_hh_trafo_complex_avx512_1hv_single(float complex* q, float complex*
worked_on += 8;
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq)
{
printf("Error in complex AVX512 BLOCK 1 kernel \n");
abort();
}
#endif
}
#ifdef DOUBLE_PRECISION_COMPLEX
......
......@@ -237,13 +237,13 @@ void double_hh_trafo_complex_avx512_2hv_single(float complex* q, float complex*
worked_on += 8;
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq)
{
printf("Error in complex AVX512 BLOCK 2 kernel \n");
abort();
}
#endif
}
#ifdef DOUBLE_PRECISION_COMPLEX
......
......@@ -310,11 +310,13 @@ void double_hh_trafo_real_avx_avx2_2hv_single(float* q, float* hh, int* pnb, int
worked_on += 8;
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq)
{
printf("Error in real avx/avx2 BLOCK 2 kernel \n");
abort();
}
#endif
}
/**
......
......@@ -297,11 +297,13 @@ void quad_hh_trafo_real_avx_avx2_4hv_single(float* q, float* hh, int* pnb, int*
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq)
{
printf("Error in real AVX/AVX2 BLOCK4 kernel \n");
abort();
}
#endif
}
/**
* Unrolled kernel that computes
......
......@@ -335,11 +335,13 @@ void hexa_hh_trafo_real_avx_avx2_6hv_single(float* q, float* hh, int* pnb, int*
worked_on += 8;
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq)
{
printf("Error in real AVX/AVX2 BLOCK6 kernel \n");
abort();
}
#endif
}
/**
......
......@@ -232,11 +232,14 @@ void double_hh_trafo_real_avx512_2hv_single(float* q, float* hh, int* pnb, int*
worked_on += 16;
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq)
{
printf("Error in AVX512 real BLOCK 2 kernel \n");
abort();
}
#endif
}
/**
......
......@@ -276,11 +276,13 @@ void quad_hh_trafo_real_avx512_4hv_single(float* q, float* hh, int* pnb, int* pn
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq)
{
printf("Error in AVX512 real BLOCK 2 kernel \n");
abort();
}
#endif
}
/**
......
......@@ -340,11 +340,14 @@ void hexa_hh_trafo_real_avx512_6hv_single(float* q, float* hh, int* pnb, int* pn
worked_on += 16;
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq)
{
printf("ERROR in avx512 kernel\n");
abort();
}
#endif
}
/**
......
......@@ -260,12 +260,13 @@ void double_hh_trafo_real_sse_2hv_single(float* q, float* hh, int* pnb, int* pnq
worked_on += 4;
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq)
{
printf("Error in real SSE BLOCK2 kernel %d %d\n", worked_on, nq);
abort();
}
#endif
}
/**
......
......@@ -254,11 +254,13 @@ void quad_hh_trafo_real_sse_4hv_single(float* q, float* hh, int* pnb, int* pnq,
worked_on += 4;
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq)
{
printf("Error in real SSE BLOCK4 kernel \n");
abort();
}
#endif
}
......
......@@ -288,11 +288,13 @@ void hexa_hh_trafo_real_sse_6hv_single(float* q, float* hh, int* pnb, int* pnq,
worked_on += 4;
}
#endif
#ifdef WITH_DEBUG
if (worked_on != nq)
{
printf("Error in real SSE BLOCK6 kernel \n");
abort();
}
#endif
}
/**
......
Markdown is supported
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