Skip to content

Commit

Permalink
ARCH added to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomulansky committed Nov 10, 2014
1 parent 1b76ef2 commit 4816011
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
11 changes: 7 additions & 4 deletions performance/SIMD/Makefile
Expand Up @@ -10,10 +10,13 @@
# you also need NT2s SIMD libary available set the include path here:
# SIMD_INCLUDE = /path/to/simd/include

INCLUDES += -I../../include/ -I$(BOOST_ROOT) -I${SIMD_INCLUDE}
#CXXFLAGS = -O3 -ffast-math -march=core-avx-i -std=c++0x -DNDEBUG -I${ODEINT_ROOT} -I${BOOST_ROOT} -I${SIMD_INCLUDE}
# -mtune=native -march=native
# change this if you want to cross-compile
ARCH = Host
# ARCH = AVX
# ARCH = SSE4.2

CXXFLAGS = -Ofast -xHost -fno-alias -ip -inline-forceinline -std=c++0x -DNDEBUG ${INCLUDES}
CXX = icpc
CC = icpc

INCLUDES += -I../../include/ -I$(BOOST_ROOT) -I${SIMD_INCLUDE}
CXXFLAGS = -Ofast -x${ARCH} -fno-alias -ip -inline-forceinline -std=c++0x -DNDEBUG ${INCLUDES}
2 changes: 0 additions & 2 deletions performance/SIMD/perf_roessler.sh
@@ -1,8 +1,6 @@
#!/bin/bash
echo "Running on ${HOSTNAME}"

#make -B roessler roessler_simd

out_dir=perf_${HOSTNAME}
mkdir -p ${out_dir}

Expand Down
6 changes: 0 additions & 6 deletions performance/SIMD/roessler_simd.cpp
Expand Up @@ -47,15 +47,9 @@ struct roessler_system {

void operator()(const state_type &x, state_type &dxdt, const double t) const
{
// std::clog << "rhs: " << dxdt.size() << std::endl;
dxdt[0] = -1.0*x[1] - x[2];
// std::clog << "rhs: " << dxdt[0] << std::endl;
dxdt[1] = x[0] + m_a * x[1];
// std::clog << "rhs: " << dxdt[1] << std::endl;
//simd_pack tmp = boost::simd::splat<simd_pack>(m_b) + x[2] * (x[0] - boost::simd::splat<simd_pack>(m_c));
// std::clog << "rhs: " << tmp << std::endl;
dxdt[2] = m_b + x[2] * (x[0] - m_c);
// std::clog << "rhs: " << dxdt[2] << std::endl;
}
};

Expand Down

0 comments on commit 4816011

Please sign in to comment.