[Paraview] Re: intel compilers on OSX

Mike Jackson mike.jackson at imts.us
Thu Sep 7 14:49:22 EDT 2006


So where do I tell cmake where to find those libraries? If I was writing my
own cmakelists.txt I would just insert a LINK_DIRECTORIES command? Where in
the ccmake for Paraview do I add those libraries?

Not sure if I am supposed to put the sourcing of the iccvars.sh in my
.bashrc or my .bash_profile.

And did you have to "export CC=/usr/bin/icc" and "export CXX=/usr/bin/icc"

Thanks
Mike Jackson


On 9/7/06 2:21 PM, "Dan White" <dan at chalkie.org.uk> wrote:

> Hi Mike,
> 
> I have built VTK with python(universal) wrappings
> on an intel macbook pro with the 0.29 version of the intel compilers.
> That's always been with recent CVS versions of VTK.
> Not sure what VTK version you are using.
> 
> so it might be a problem with the 0.30 version of the intel
> compilers...?
> 
> I noticed that many of the VTK .dylibs i generate link against
> libGuide.dylib, which is one of the intel libs
> 
> Watch out, the install_name of the intel libs are not set correctly
> and i have been having problems getting the install_names set correctly
> on
> make install
> and also using
> py2app
> 
> this means that if you forget to run
>>> source /opt/intel/cc/9.1.029/bin/iccvars.sh
> then you will be in trouble at runtime, as the intel libs
> will not be in the dynamic library path
> 
> (shouldn't it be the .profile not the .bashrc that you add that to?)
> 
> I have also had success using the compiler flag -xP for optimisation
> for the intel core duo chip in the MacBook Pro.
> Seemed to make some of our custom VTK C++ code faster.
> I suppose thats the point of using those compilers in the first place.
> 
> cheers
> 
> Dan
> 
> 
>> Ok. Did all that. I added the sourcing of the iccvars.sh to
>> my .bashrc file.
>> Did a clean make and still the same problem when it gets to the
>> point of
>> linking libvtkCommonTCL it dies with the same errors. I also
>> noticed from
>> the verbose make file that at the link stage the intel library
>> folder is not
>> being included as a link directory and neither are the intel libs..
>> 
>> (*(*(*__frustrated__#%@$#
>> -- 
>> Mike Jackson   Senior Research Engineer
>> Innovative Management & Technology Services
>> 
>> 
>> On 9/7/06 12:49 PM, "Dan White" <dan at chalkie.org.uk> wrote:
>> 
>>> Ahhh Yes!
>>> you must remember to source the file containing the environmental
>>> variables
>>> required by the compilers to find their stuff
>>> 
>>> read the instructions for the compiler package
>>> 
>>> should be something like
>>> 
>>> source /opt/intel/cc/9.1.029/bin/iccvars.sh
>>> 
>>> cheers
>>> 
>>> Dan
>>> 
>>> On 7 Sep 2006, at 19:34, Mike Jackson wrote:
>>> 
>>>> So I did the trick described and now I am getting:
>>>> 
>>>> ld: Undefined symbols:
>>>> __intel_fast_memcmp
>>>> __intel_fast_memcpy
>>>> ___libm_sse2_atan
>>>> ___libm_sse2_cos
>>>> ___libm_sse2_log10
>>>> ___libm_sse2_atan2
>>>> ___libm_sse2_sincos
>>>> ___libm_sse2_sin
>>>> 
>>>> I am guessing that I am missing a library path somewhere but Not
>>>> sure where.
>>>> Google isn't being helpful. I just found some references to
>>>> libirc.a and
>>>> libimf.a.
>>>> 
>>>> Any help would be appreciated.
>>>> 
>>>> Here is my cmake instantiation:
>>>> cmake -D CMAKE_C_COMPILER:FILEPATH=/usr/bin/icc -D
>>>> CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/icc -D
>>>> CXX_COMPILER_OPTIONS:STRING=-cxxlib-icc,-dynamiclib,-L/opt/intel/cc/
>>>> 9.1.030/
>>>> lib/,-lirc,-limf,lsvml -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON ../
>>>> paraview-2.4.4/
>>>> 
> 
> Dr. Daniel James White BSc. (Hons.) PhD
> Bioimaging Coordinator
> Nanoscience Centre and Department of Biological and Environmental
> Sciences
> Division of Molecular Recognition
> Ambiotica C242
> PO Box 35
> University of Jyväskylä
> Jyväskylä
> FIN 40014
> Finland
> 
> +358 14 260 4183 (work)
> +358 468102840 (mobile)
> http://www.bioimagexd.org
> http://www.chalkie.org.uk
> dan at chalkie.org.uk
> white at cc.jyu.fi
> 
> 
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview

-- 
 ______________________________________________________________________
/ Mike Jackson   Senior Research Engineer
|  CTMD Group - Materials and Manufacturing Directorate - AFRL - WPAFB
|  Innovative Management & Technology Services
|  2900 Presidential Dr, Suite 170         Fairborn Ohio     45324
|  [-Ph- 937-426-9855]   [-Lab- 937-656-7277]     [-Fax- 937-426-9860]
\______________________________________________________________________





More information about the ParaView mailing list