[Paraview] Re: intel compilers on OSX

Dan White dan at chalkie.org.uk
Thu Sep 7 14:55:29 EDT 2006


Hi Mike


On 7 Sep 2006, at 21:49, Mike Jackson wrote:

> 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?

dont need to to that, the iccvars.sh script will
add the path to the intel libs to your dynamic library load path
so they will get found that way (or at least they did for 0.29 and VTK,
I haven't had chance to test the 0.30 version of the compilers yet.)

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

i think its supposed to be .profile
not sure if my environment is a bit screwed up having moved it from  
an older PPC mac.

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

Yes, you must do that for a fresh clean VTK CVS tree
or else ccmake will use gcc and you cant make it change to icc and  
icpc after that is set.

Dan

> 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]
> \_____________________________________________________________________ 
> _
>
>
>

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




More information about the ParaView mailing list