Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] 64-bit compilation


Chronological Thread 
  • From: Abe Stephens <abe@sci.utah.edu>
  • To: Christiaan Paul Gribble <cgribble@sci.utah.edu>
  • Cc: "'manta@sci.utah.edu'" <manta@sci.utah.edu>
  • Subject: Re: [MANTA] 64-bit compilation
  • Date: Sun, 04 Jun 2006 11:57:28 -0700



Ok, I did see this on Friday--and resorted to using a copy of Manta that James had already built.

It would be really cool if you figured out the problem. I haven't had trouble compiling manta with icc--I've used several versions and haven't seen this problem, although I'm not sure if I have the most up-to-date tree.

Abe

Christiaan Paul Gribble wrote:

On Jun 4, 2006, at 11:46 AM, Abe Stephens wrote:

I've been working with the 32bit sse build, however I would imagine that the 64 bit build would be necessary for some people on arachne. Use the icc compilers in the cce/ sub directory to compile 64 bit on linux. On fisher, the compiler is 64 bit by default.


I couldn't get it to build with SSE in 32-bit mode, with either icc (in cce/) or gcc (using "-m32"). Here's the error:

Building CXX object Model/CMakeFiles/Manta_Model.dir/Materials/Phong.o
/opt/intel/cce/9.0/bin/icpc -DManta_Model_EXPORTS - DSCI_NOPERSISTENT -tpp7 -O3 -g -DSCI_ASSERTION_LEVEL=0 -fPIC -I/home/ sci/cgribble/Manta/build-arachne/include -I/usr/share/doc/ NVIDIA_GLX-1.0/include -I/home/sci/cgribble/Manta/src -I/home/sci/ cgribble/Manta/src/SCIRun -I/home/sci/cgribble/Manta/src/SCIRun/ include -I/home/sci/cgribble/research/code/ThirdParty/teem/include - o Model/CMakeFiles/Manta_Model.dir/Materials/Phong.o -c /home/sci/ cgribble/Manta/src/Model/Materials/Phong.cc

/home/sci/cgribble/Manta/src/Model/Materials/Phong.cc(207): error: invalid type conversion: "__m128={__m128}" to "__m128i={__m128}"
_mm_maskmoveu_si128((__m128i)_mm_add_ps(_mm_load_ps (&ambientAndDiffuseLight[0][i]), _mm_mul_ps(lightr, cos_theta)), (__m128i)mask, (char*)&ambientAndDiffuseLight[0][i]);
                                         ^

/home/sci/cgribble/Manta/src/Model/Materials/Phong.cc(207): error: invalid type conversion: "__m128={__m128}" to "__m128i={__m128}"
_mm_maskmoveu_si128((__m128i)_mm_add_ps(_mm_load_ps (&ambientAndDiffuseLight[0][i]), _mm_mul_ps(lightr, cos_theta)), (__m128i)mask, (char*)&ambientAndDiffuseLight[0][i]);
^

Several similar errors are reported in Phong.cc before it chokes. Has anyone else seen this problem and figured out a work around without turning off SSE, or am I just doing something stupid with icpc?

C







Archive powered by MHonArc 2.6.16.

Top of page