1) Firstly install ExtUtils::FakeConfig
2) Create a file called icc_Config.pm containing
package icc_Config;
use ExtUtils::FakeConfig ccflags => '-O2 -i_dynamic -w2',
cc => 'icc',
ld => 'icc',
cppflags => '-O2 -i_dynamic -w2',
optimize => '-O2 -i_dynamic -w2',
libpth => '/opt/intel/Compiler/11.0/081/lib/ia32 /opt/intel/Compiler/11.0/081/ipp/ia32/sharedlib /opt/intel/Compiler/11.0/081/mkl/lib/32 /opt/intel/Compiler/11.0/081/tbb/ia32/cc4.1.0_libc2.4_kernel2.6.16.21/lib /usr/local/lib /lib /usr/lib',
lddlflags => '-L/usr/local/lib',
ccdlflags => '-shared',
cccdlflags => '-shared',
lddlflags => '-shared -O2 -i_dynamic -w2 -L/opt/intel/Compiler/11.0/081/lib/ia32 -L/usr/local/lib',
ldflags => ' -shared -L/opt/intel/Compiler/11.0/081/lib/ia32 -L/usr/local/lib';
1;
3) Put that file in /usr/local/lib/perl5/site_perl/5.10.0/icc_Config.pm (or wherever is appropriate for this system)
4) export LD_LIBRARY_PATH=/opt/intel/Compiler/11.0/081/lib/ia32:$LD_LIBRARY_PATH
5) export PERL5OPT=-Micc_Config
6) If you get errors that CPAN can't find a working ptee, then reinstall the Tee module, ensuring "PERL5OPT=-Micc_Config perl Makefile.PL"
Note: to build Perl with icc: "PERL5OPT= perlbrew --force install perl-5.x.y -Acc=icc -Accflags="$CFLAGS"
Monday, August 2, 2010
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment