Text archives Help
- From: H.Sri-Narayana@cs.ucl.ac.uk
- To: Solomon Boulos <boulos@cs.utah.edu>
- Cc: Harsha Sri-Narayana <H.Sri-Narayana@cs.ucl.ac.uk>, MANTA <manta@sci.utah.edu>
- Subject: Re: [Manta] SSE problem
- Date: 03 Dec 2007 12:59:26 +0000
You guys are right. The -msse and -msse2 are missing in 1892 and are there
in 1889. How do I add flags to cmake_cxx_flags ? I can't see that option in
ccmake. -Harsha
On Dec 2 2007, Solomon Boulos wrote:
Actually, this is a long standing problem for our linux configs. Most
linux distros have gcc versions that enable -msse -msse2 and -msse3 by
default. Ubuntu is more sane and doesn't do this. Rolling back to 1889
won't fix the problem, so as Abe suggested add -msse -msse2 and -msse3
to your CMAKE_CXX_FLAGS for now
On Dec 2, 2007, at 12:35 PM, Abe Stephens wrote:
On Dec 2, 2007, at 6:29 AM, H.Sri-Narayana@cs.ucl.ac.uk wrote:
If I try and compile r1891 I am told the 'SSE instruction set is
not enabled.' The full error log is attached. I disabled GCC_SSE
and SSE from the ccmake options and build/bin/manta runs ok,
although I get a big performance hit. However if I compile r1889
then I can have the SSE flags on.
It looks like there were some major changes to the SSE logic for
supporting non-unix systems which don't have the same set of common
tools.
Try running "make VERBOSE=1": you should see the SSE command line
options when MANTA_SSE is enabled:
[ 1%] Building CXX object CMakeFiles/About.dir/src/About.o
/usr/bin/c++ -Wall -Wno-strict-aliasing -DSCI_NOPERSISTENT -
march=nocona -mtune=nocona -msse -msse2 -msse3 -mfpmath=sse -O3 -
DNDEBUG -g3 -fgcse-sm -funroll-loops -fstrict-aliasing -fsched-
interblock -ffast-math -freorder-blocks -I/Users/abe/Manta -I/Users/
abe/Manta/build-leopard/include -I/usr/X11R6/include -fPIC -o
CMakeFiles/About.dir/src/About.o -c /Users/abe/Manta/build-leopard/
src/About.cc
If they aren't there, you can add them to CMAKE_CXX_FLAGS manually.
Alternatively roll back to 1889.
(Subquestion: How do I easily diff 2 svn versions from terminal?
Should I checkout each version separately and then use diff? Or is
there some nice in built svn way?)
Try: svn diff -r 1889:HEAD CMake/CheckSSE.cmake from the trunk's
root directory.
Abe
harsha@Sinclair:~/Manta1892/build$ make VERBOSE=1
/usr/bin/cmake -H/home/harsha/Manta1892 -B/home/harsha/Manta1892/build
--check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start
/home/harsha/Manta1892/build/CMakeFiles 100
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/harsha/Manta1892/build'
make -f CMakeFiles/SvnInfo.dir/build.make CMakeFiles/SvnInfo.dir/build
make[2]: Entering directory `/home/harsha/Manta1892/build'
make[2]: Nothing to be done for `CMakeFiles/SvnInfo.dir/build'.
make[2]: Leaving directory `/home/harsha/Manta1892/build'
/usr/bin/cmake -E cmake_progress_report
/home/harsha/Manta1892/build/CMakeFiles 1
[ 1%] Built target SvnInfo
make -f CMakeFiles/About.dir/build.make CMakeFiles/About.dir/depend
make[2]: Entering directory `/home/harsha/Manta1892/build'
make[2]: Nothing to be done for `CMakeFiles/About.dir/depend'.
make[2]: Leaving directory `/home/harsha/Manta1892/build'
make -f CMakeFiles/About.dir/build.make CMakeFiles/About.dir/build
make[2]: Entering directory `/home/harsha/Manta1892/build'
make[2]: Nothing to be done for `CMakeFiles/About.dir/build'.
make[2]: Leaving directory `/home/harsha/Manta1892/build'
/usr/bin/cmake -E cmake_progress_report
/home/harsha/Manta1892/build/CMakeFiles
[ 1%] Built target About
make -f Core/CMakeFiles/Manta_Core.dir/build.make
Core/CMakeFiles/Manta_Core.dir/depend
make[2]: Entering directory `/home/harsha/Manta1892/build'
make[2]: Nothing to be done for `Core/CMakeFiles/Manta_Core.dir/depend'.
make[2]: Leaving directory `/home/harsha/Manta1892/build'
make -f Core/CMakeFiles/Manta_Core.dir/build.make
Core/CMakeFiles/Manta_Core.dir/build
make[2]: Entering directory `/home/harsha/Manta1892/build'
/usr/bin/cmake -E cmake_progress_report
/home/harsha/Manta1892/build/CMakeFiles 11
[ 2%] Building CXX object Core/CMakeFiles/Manta_Core.dir/Math/CheapRNG.o
/usr/bin/c++ -DManta_Core_EXPORTS -Wall -Wno-strict-aliasing -O3
-DNDEBUG -g3 -fgcse-sm -funroll-loops -fstrict-aliasing -fsched-interblock
-ffast-math -freorder-blocks -fPIC -I/home/harsha/Manta1892
-I/home/harsha/Manta1892/build/include -I/usr/include/libxml2 -o
Core/CMakeFiles/Manta_Core.dir/Math/CheapRNG.o -c
/home/harsha/Manta1892/Core/Math/CheapRNG.cc
In file included from /home/harsha/Manta1892/Core/Math/SSEDefs.h:10,
from /home/harsha/Manta1892/Interface/RayPacket.h:48,
from
/home/harsha/Manta1892/Interface/RandomNumberGenerator.h:37,
from /home/harsha/Manta1892/Core/Math/CheapRNG.h:57,
from /home/harsha/Manta1892/Core/Math/CheapRNG.cc:1:
/usr/lib/gcc/i486-linux-gnu/4.1.3/include/xmmintrin.h:34:3: error: #error
"SSE instruction set not enabled"
/home/harsha/Manta1892/Core/Math/SSEDefs.h:17: error: â__m128â does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:18: error: â__m128iâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:67: error: â__m128â has not
been declared
/home/harsha/Manta1892/Core/Math/SSEDefs.h:68: error: â__m128iâ has not
been declared
/home/harsha/Manta1892/Core/Math/SSEDefs.h:75: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:81: error: â__m128iâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:112: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:113: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:114: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:115: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:116: error: âsse_int_tâ does
not name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:117: error: âsse_int_tâ does
not name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:118: error: âsse_int_tâ does
not name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:119: error: âsse_int_tâ does
not name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:120: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:121: error: âsse_int_tâ does
not name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:122: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:123: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:124: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:125: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:126: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:127: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:131: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:132: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:133: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:135: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:136: error: âsse_int_tâ does
not name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:137: error: âsse_int_tâ does
not name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:138: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:139: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:140: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:141: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:142: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:143: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:144: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:145: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:146: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:147: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:150: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:155: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:164: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:170: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:175: error: âsse_int_tâ does
not name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:180: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:185: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:191: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:200: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:205: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:211: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:219: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:224: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:232: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:241: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:251: error: expected â,â or
â...â before â&â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:251: error: ISO C++ forbids
declaration of âsse_tâ with no type
/home/harsha/Manta1892/Core/Math/SSEDefs.h: In function âfloat
Manta::dot1(int)â:
/home/harsha/Manta1892/Core/Math/SSEDefs.h:253: error: âsse_tâ does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:254: error: âdâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h: At global scope:
/home/harsha/Manta1892/Core/Math/SSEDefs.h:257: error: variable or field
ânormalizeâ declared void
/home/harsha/Manta1892/Core/Math/SSEDefs.h:257: error: âManta::normalizeâ
declared as an âinlineâ variable
/home/harsha/Manta1892/Core/Math/SSEDefs.h:257: error: âsse_tâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:257: error: âvâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:258: error: expected â,â or
â;â before â{â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:263: error: expected â,â or
â...â before â&â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:263: error: ISO C++ forbids
declaration of âsse_tâ with no type
/home/harsha/Manta1892/Core/Math/SSEDefs.h: In function âfloat
Manta::sqrLength(int)â:
/home/harsha/Manta1892/Core/Math/SSEDefs.h:265: error: âaâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h: At global scope:
/home/harsha/Manta1892/Core/Math/SSEDefs.h:268: error: âManta::lengthâ
declared as an âinlineâ variable
/home/harsha/Manta1892/Core/Math/SSEDefs.h:268: error: âsse_tâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:269: error: expected â,â or
â;â before â{â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:276: error: âManta::min4fâ
declared as an âinlineâ variable
/home/harsha/Manta1892/Core/Math/SSEDefs.h:276: error: âsse_tâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:277: error: expected â,â or
â;â before â{â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:292: error: âManta::max4fâ
declared as an âinlineâ variable
/home/harsha/Manta1892/Core/Math/SSEDefs.h:292: error: âsse_tâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:293: error: expected â,â or
â;â before â{â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:308: error: âManta::min3fâ
declared as an âinlineâ variable
/home/harsha/Manta1892/Core/Math/SSEDefs.h:308: error: âsse_tâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:309: error: expected â,â or
â;â before â{â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:326: error: âManta::max3fâ
declared as an âinlineâ variable
/home/harsha/Manta1892/Core/Math/SSEDefs.h:326: error: âsse_tâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:327: error: expected â,â or
â;â before â{â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:343: error:
âManta::simd_componentâ declared as an âinlineâ variable
/home/harsha/Manta1892/Core/Math/SSEDefs.h:343: error: âsse_tâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:343: error: expected
primary-expression before âintâ
/home/harsha/Manta1892/Core/Math/SSEDefs.h:343: error: initializer expression
list treated as compound expression
/home/harsha/Manta1892/Core/Math/SSEDefs.h:344: error: expected â,â or
â;â before â{â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:351: error: variable or field
âsimd_cerrâ declared void
/home/harsha/Manta1892/Core/Math/SSEDefs.h:351: error: âManta::simd_cerrâ
declared as an âinlineâ variable
/home/harsha/Manta1892/Core/Math/SSEDefs.h:351: error: âsse_tâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:352: error: expected â,â or
â;â before â{â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:356: error: âManta::as_Vec3fâ
declared as an âinlineâ variable
/home/harsha/Manta1892/Core/Math/SSEDefs.h:356: error: âsse_tâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:357: error: expected â,â or
â;â before â{â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:364: error: âManta::as_Vectorâ
declared as an âinlineâ variable
/home/harsha/Manta1892/Core/Math/SSEDefs.h:364: error: âsse_tâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:365: error: expected â,â or
â;â before â{â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:372: error:
âManta::count_nonzerosâ declared as an âinlineâ variable
/home/harsha/Manta1892/Core/Math/SSEDefs.h:372: error: âsse_tâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:373: error: expected â,â or
â;â before â{â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:384: error:
âManta::count_zerosâ declared as an âinlineâ variable
/home/harsha/Manta1892/Core/Math/SSEDefs.h:384: error: âsse_tâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/SSEDefs.h:385: error: expected â,â or
â;â before â{â token
/home/harsha/Manta1892/Core/Math/SSEDefs.h:408: error: â__m128â does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:417: error: â__m128â does not
name a type
/home/harsha/Manta1892/Core/Math/SSEDefs.h:432: error: â__m128iâ does not
name a type
/home/harsha/Manta1892/Interface/RayPacket.h:496: error: â__m128â does
not name a type
/home/harsha/Manta1892/Interface/RayPacket.h:574: error: â__m128â does
not name a type
/home/harsha/Manta1892/Interface/RayPacket.h:581: error: â__m128â does
not name a type
/home/harsha/Manta1892/Interface/RayPacket.h:591: error: â__m128â does
not name a type
/home/harsha/Manta1892/Interface/RayPacket.h:598: error: â__m128â does
not name a type
/home/harsha/Manta1892/Interface/RayPacket.h:626: error: â__m128â does
not name a type
/home/harsha/Manta1892/Interface/RayPacket.h:645: error: â__m128â does
not name a type
/home/harsha/Manta1892/Interface/RayPacket.h: In member function âvoid
Manta::RayPacket::resetHits()â:
/home/harsha/Manta1892/Interface/RayPacket.h:415: error: â_mm_setzero_psâ
was not declared in this scope
/home/harsha/Manta1892/Interface/RayPacket.h:415: error: â_mm_store_psâ
was not declared in this scope
/home/harsha/Manta1892/Interface/RayPacket.h:417: error: â_mm_set1_psâ
was not declared in this scope
/home/harsha/Manta1892/Interface/RandomNumberGenerator.h: In member function
âvirtual void
Manta::RandomNumberGenerator::nextPacket(Manta::Packet<float>&,
Manta::RayPacket&)â:
/home/harsha/Manta1892/Interface/RandomNumberGenerator.h:83: error:
â__m128iâ was not declared in this scope
/home/harsha/Manta1892/Interface/RandomNumberGenerator.h:83: error: expected
primary-expression before â)â token
/home/harsha/Manta1892/Interface/RandomNumberGenerator.h:83: error:
â_mm_load_si128â was not declared in this scope
/home/harsha/Manta1892/Interface/RandomNumberGenerator.h:83: error:
â_mm_srli_epi32â was not declared in this scope
/home/harsha/Manta1892/Interface/RandomNumberGenerator.h:83: error:
â_mm_cvtepi32_psâ was not declared in this scope
/home/harsha/Manta1892/Interface/RandomNumberGenerator.h:84: error:
â_mm_set1_psâ was not declared in this scope
/home/harsha/Manta1892/Interface/RandomNumberGenerator.h:84: error:
â_mm_mul_psâ was not declared in this scope
/home/harsha/Manta1892/Interface/RandomNumberGenerator.h:84: error:
â_mm_store_psâ was not declared in this scope
/home/harsha/Manta1892/Core/Math/CheapRNG.h: At global scope:
/home/harsha/Manta1892/Core/Math/CheapRNG.h:76: error: â__m128iâ does not
name a type
/home/harsha/Manta1892/Core/Math/CheapRNG.h: In member function âvirtual
void Manta::CheapRNG::seed(unsigned int)â:
/home/harsha/Manta1892/Core/Math/CheapRNG.h:91: error: âval_sseâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/CheapRNG.h:94: error: â_mm_set_epi32â
was not declared in this scope
/home/harsha/Manta1892/Core/Math/CheapRNG.h: In member function âvirtual
void Manta::CheapRNG::nextIntPacket(Manta::Packet<unsigned int>&,
Manta::RayPacket&)â:
/home/harsha/Manta1892/Core/Math/CheapRNG.h:106: error: âval_sseâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/CheapRNG.h:106: error: â_mm_set_epi32â
was not declared in this scope
/home/harsha/Manta1892/Core/Math/CheapRNG.h:107: error: â_mm_mullo_epi32â
was not declared in this scope
/home/harsha/Manta1892/Core/Math/CheapRNG.h:107: error: â_mm_add_epi32â
was not declared in this scope
/home/harsha/Manta1892/Core/Math/CheapRNG.h:108: error: â__m128iâ was not
declared in this scope
/home/harsha/Manta1892/Core/Math/CheapRNG.h:108: error: expected
primary-expression before â)â token
/home/harsha/Manta1892/Core/Math/CheapRNG.h:108: error: â_mm_store_si128â
was not declared in this scope
make[2]: *** [Core/CMakeFiles/Manta_Core.dir/Math/CheapRNG.o] Error 1
make[2]: Leaving directory `/home/harsha/Manta1892/build'
make[1]: *** [Core/CMakeFiles/Manta_Core.dir/all] Error 2
make[1]: Leaving directory `/home/harsha/Manta1892/build'
make: *** [all] Error 2
harsha@Sinclair:~/Manta1892/build$
Archive powered by MHonArc 2.6.16.