Difference between revisions of "User:Le Forgeron/vault/Ubuntu Icc"
< User:Le Forgeron | vault
Jump to navigation
Jump to search
Le Forgeron (talk | contribs) |
Le Forgeron (talk | contribs) (→Povray) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | The following assumes that povray made with gcc has been installed already (for the libraries and other dependancies) | ||
+ | [[../Ubuntu_Gcc]] | ||
+ | === Intel© Compiler === | ||
# Get the compiler http://software.intel.com/en-us/articles/non-commercial-software-development/ | # Get the compiler http://software.intel.com/en-us/articles/non-commercial-software-development/ | ||
## Check if you qualify | ## Check if you qualify | ||
Line 27: | Line 30: | ||
install-dir/Documentation/en_US/documentation_c.htm. | install-dir/Documentation/en_US/documentation_c.htm. | ||
</pre> | </pre> | ||
+ | ==== on 64 bits system ==== | ||
+ | You must have installed the gcc-multilib & g++-multilib for the ./install.sh to find its prerequisites. | ||
+ | |||
=== Boost === | === Boost === | ||
# Get the tar ball for boost http://www.boost.org/ | # Get the tar ball for boost http://www.boost.org/ | ||
# Extract ( tar xjf boost_1_48_0.tar.bz2 ) | # Extract ( tar xjf boost_1_48_0.tar.bz2 ) | ||
# Change directory ( cd boost_1_48_0/ ) | # Change directory ( cd boost_1_48_0/ ) | ||
+ | # Start install ( ./bootstrap.sh --prefix=/opt/intel --with-toolset=intel-linux ) | ||
+ | # Reclaim ownership of /opt/intel ( sudo chown -R jerome:jerome /opt/intel ) | ||
+ | # Go further ( ./b2 install --prefix=/opt/intel ) | ||
+ | |||
=== Povray === | === Povray === | ||
# Extract the source ( tar -xvf povray-3.7.0.RC4.tar.gz ) | # Extract the source ( tar -xvf povray-3.7.0.RC4.tar.gz ) | ||
# Change directory ( cd povray-3.7.0.RC4/ ) | # Change directory ( cd povray-3.7.0.RC4/ ) | ||
− | # | + | # Configure povray ( CXX=icc ./configure COMPILED_BY="Grimbert Jerome <[email protected]>" --disable-io-restrictions ) |
+ | # Compile ( make -j 12 ) | ||
+ | # Check ( make check ) | ||
+ | # Install under anothername ( sudo cp unix/povray /usr/local/bin/povrayicc ) | ||
+ | |||
+ | == Ubuntu 13.04 & icpc 13 == | ||
+ | |||
+ | The bits/c++config.h file is not found from gnu includes when used with icpc, so to fix it: | ||
+ | |||
+ | CPPFLAGS=-I/usr/include/x86_64-linux-gnu/c++/4.7/ | ||
+ | export CPPFLAGS | ||
+ | CXX=icpc CC=icpc ./configure --disable-io-restrictions COMPILED_BY="Grimbert Jérôme <[email protected]>" |
Latest revision as of 16:04, 21 June 2013
The following assumes that povray made with gcc has been installed already (for the libraries and other dependancies) User:Le Forgeron/vault/Ubuntu_Gcc
Intel© Compiler
- Get the compiler http://software.intel.com/en-us/articles/non-commercial-software-development/
- Check if you qualify
- Register
- Keep note of the serial number
- Download the compiler (Intel© C++ Composer XE for Linux (formely Intel© C++ Compiler Professional Edition for Linux))
- Extract ( tar -xvf l_ccompxe_intel64_2011.9.293.tgz )
- Change directory (cd l_ccompxe_intel64_2011.9.293 )
- Set a root password (sudo passwd root )
- Install ( ./install.sh )
- Remember:
To get started using Intel(R) Composer XE 2011 Update 9 located in /opt/intel/composer_xe_2011_sp1.9.293: - Set the environment variables for a terminal window using one of the following (replace "intel64" with "ia32" if you are using a 32-bit platform). For csh/tcsh: $ source install-dir/bin/compilervars.csh intel64 For bash: $ source install-dir/bin/compilervars.sh intel64 To invoke the installed compilers: For C++: icpc For C: icc For Fortran: ifort To get help, append the -help option or precede with the man command. - To view a table of getting started documents: install-dir/Documentation/en_US/documentation_c.htm.
on 64 bits system
You must have installed the gcc-multilib & g++-multilib for the ./install.sh to find its prerequisites.
Boost
- Get the tar ball for boost http://www.boost.org/
- Extract ( tar xjf boost_1_48_0.tar.bz2 )
- Change directory ( cd boost_1_48_0/ )
- Start install ( ./bootstrap.sh --prefix=/opt/intel --with-toolset=intel-linux )
- Reclaim ownership of /opt/intel ( sudo chown -R jerome:jerome /opt/intel )
- Go further ( ./b2 install --prefix=/opt/intel )
Povray
- Extract the source ( tar -xvf povray-3.7.0.RC4.tar.gz )
- Change directory ( cd povray-3.7.0.RC4/ )
- Configure povray ( CXX=icc ./configure COMPILED_BY="Grimbert Jerome <[email protected]>" --disable-io-restrictions )
- Compile ( make -j 12 )
- Check ( make check )
- Install under anothername ( sudo cp unix/povray /usr/local/bin/povrayicc )
Ubuntu 13.04 & icpc 13
The bits/c++config.h file is not found from gnu includes when used with icpc, so to fix it:
CPPFLAGS=-I/usr/include/x86_64-linux-gnu/c++/4.7/ export CPPFLAGS CXX=icpc CC=icpc ./configure --disable-io-restrictions COMPILED_BY="Grimbert Jérôme <[email protected]>"