View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007214ITKpublic2008-06-19 18:332008-09-02 13:27
ReporterSean McBride 
Assigned ToLuis Ibanez 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformMac OS XOSMac OS XOS Version10.5
Product Version 
Target VersionFixed in Version 
Summary0007214: ITK CVS does not build with VNL_CONFIG_ENABLE_SSE2 ON when building Mac Universal Binaries
DescriptionIf I turn VNL_CONFIG_ENABLE_SSE2 ON and set CMAKE_OSX_ARCHITECTURES to "i386" then things build fine. But if I set CMAKE_OSX_ARCHITECTURES to "ppc" then I get:

In file included from /Users/sean/kitware/Insight/Utilities/vxl/core/vnl/vnl_c_vector.txx:19,
                 from /Users/sean/kitware/Insight/Utilities/vxl/core/vnl/Templates/vnl_c_vector+double-.cxx:1:
/Users/sean/kitware/Insight/Utilities/vxl/core/vnl/vnl_sse.h:23:5: error: #error "Required file emmintrin.h for SSE2 not found"

Well, naturally, the PowerPC does not support SSE2, so this isn't too unreasonable. :)

However, if I set CMAKE_OSX_ARCHITECTURES to "i386;ppc" (to build a Universal Binary) then I also get that compiler error. This is problematic.

I am testing a patch...
TagsNo tags attached.
Resolution Date
Sprint
Sprint Status
Attached Filestxt file icon 7214patch.txt [^] (685 bytes) 2008-06-20 10:18 [Show Content]

 Relationships
related to 0007207assignedBradley Lowekamp vnl_sse<double>::matrix_x_vector(...) yields wrong result when VNL_CONFIG_ENABLE_SSE2:BOOL=ON 

  Notes
(0012439)
Sean McBride (developer)
2008-06-20 10:19

With the attached patch, I am able to compile&link a 4 way universal binary (ppc, ppc64, i386, x86_64). Some tests do fail however. I believe Bug 7207 is the cause.

Can someone review the patch? Or shall I just commit it?
(0012669)
Luis Ibanez (manager)
2008-07-09 10:07

Sean:

Thanks for the patch.
Amitha Perera submitted the patch for review to the VXL developers team and they committed it in the Development repository of VXL.

Could you please commit the same change in ITK ?

In this way, it will make it to ITK 3.8.

   Thanks


       Luis
(0012671)
Sean McBride (developer)
2008-07-09 10:17

/cvsroot/Insight/Insight/Utilities/vxl/core/vnl/vnl_sse.h,v <-- Utilities/vxl/core/vnl/vnl_sse.h
new revision: 1.4; previous revision: 1.3
(0013255)
Sean McBride (developer)
2008-09-02 13:27

The patch has been working well for a while now. Closing.

 Issue History
Date Modified Username Field Change
2008-06-19 18:33 Sean McBride New Issue
2008-06-20 10:18 Sean McBride File Added: 7214patch.txt
2008-06-20 10:19 Sean McBride Note Added: 0012439
2008-06-20 10:19 Sean McBride Status new => assigned
2008-06-20 10:19 Sean McBride Assigned To => Luis Ibanez
2008-06-20 10:20 Sean McBride Relationship added related to 0007207
2008-07-09 10:07 Luis Ibanez Note Added: 0012669
2008-07-09 10:17 Sean McBride Status assigned => resolved
2008-07-09 10:17 Sean McBride Resolution open => fixed
2008-07-09 10:17 Sean McBride Note Added: 0012671
2008-09-02 13:27 Sean McBride Status resolved => closed
2008-09-02 13:27 Sean McBride Note Added: 0013255


Copyright © 2000 - 2018 MantisBT Team