Some small fixes for vectorization

parent 325ff809
...@@ -197,9 +197,9 @@ env.Append(CCFLAGS=['-fstrict-aliasing', '-fargument-noalias']) ...@@ -197,9 +197,9 @@ env.Append(CCFLAGS=['-fstrict-aliasing', '-fargument-noalias'])
if env['compileMode'] == 'release' and env['vectorize']: if env['compileMode'] == 'release' and env['vectorize']:
env.Append(CPPDEFINES=['VECTORIZE']) env.Append(CPPDEFINES=['VECTORIZE'])
if env['compiler'] == 'intel': if env['compiler'] == 'intel':
env.Append(CCFLAGS=['-xHost']) env.Append(CCFLAGS=['-xavx'])
if env['compiler'] == 'intel' and env['showVectorization']: if env['compiler'] == 'intel' and env['showVectorization']:
env.Append(CCFLAGS=['-vec-report2']) env.Append(CCFLAGS=['-vec-report3'])
# Platform # Platform
if env['compiler'] == 'intel' and env['platform'] == 'mic': if env['compiler'] == 'intel' and env['platform'] == 'mic':
......
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
* SWE_Block, which uses solvers in the wave propagation formulation. * SWE_Block, which uses solvers in the wave propagation formulation.
*/ */
#include "tools/Logger.hh"
#include "SWE_WavePropagationBlock.hh" #include "SWE_WavePropagationBlock.hh"
#include <cassert> #include <cassert>
...@@ -36,8 +38,6 @@ ...@@ -36,8 +38,6 @@
#include <omp.h> #include <omp.h>
#endif #endif
#include "tools/Logger.hh"
/** /**
* Constructor of a SWE_WavePropagationBlock. * Constructor of a SWE_WavePropagationBlock.
* *
...@@ -114,7 +114,7 @@ void SWE_WavePropagationBlock::computeNumericalFluxes() { ...@@ -114,7 +114,7 @@ void SWE_WavePropagationBlock::computeNumericalFluxes() {
tools::Logger::logger.resetCpuClockToCurrentTime(); tools::Logger::logger.resetCpuClockToCurrentTime();
//maximum (linearized) wave speed within one iteration //maximum (linearized) wave speed within one iteration
float maxWaveSpeed = (float) 0.; float maxWaveSpeed = (float) .0;
// compute the net-updates for the vertical edges // compute the net-updates for the vertical edges
...@@ -138,7 +138,6 @@ void SWE_WavePropagationBlock::computeNumericalFluxes() { ...@@ -138,7 +138,6 @@ void SWE_WavePropagationBlock::computeNumericalFluxes() {
#endif // VECTORIZE #endif // VECTORIZE
#endif // WAVE_PROPAGATION_SOLVER==4 #endif // WAVE_PROPAGATION_SOLVER==4
for(int j = 1; j < ny+1; j++) { for(int j = 1; j < ny+1; j++) {
float maxEdgeSpeed; float maxEdgeSpeed;
#if WAVE_PROPAGATION_SOLVER!=3 #if WAVE_PROPAGATION_SOLVER!=3
......
Subproject commit 2569cc274f93ca7af014e972bc1fed7b0b1df7ef Subproject commit 9f7fe2f2ebc31a9c9e68583232748fb5de7dba18
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