build and compilation Problem (icc)

build and compilation Problem (icc)

Hello Friends,

         I am trying to read and execute intel compiler tutorial and some sample code. but when i trying to execute following command i got error.

root@swapnil-lp:/opt/intel/composer_xe_2013/Samples/en_US/C++/mic_samples/LEO_tutorial# icc -openmp tbo_sort.c -o tbo_exe_MIC
icc: warning #10361: Environment configuration problem encountered.  Please check for proper MPSS installation and environment setup.
tbo_sort.c(29): catastrophic error: *MIC* cannot open source file "stdio.h"
  #include <stdio.h>
                    ^

compilation aborted for tbo_sort.c (code 4)

if i comment to all header file i got following error.

root@swapnil-lp:/opt/intel/composer_xe_2013/Samples/en_US/C++/mic_samples/LEO_tutorial# icc -openmp tbo_sort.c -o tbo_exe_MIC
icc: warning #10361: Environment configuration problem encountered.  Please check for proper MPSS installation and environment setup.
x86_64-k1om-linux-ld: No such file or directory

I have set compiler / enviornment variable:

using following command :

$ source compilervars.sh intel64

What is problem there? Is it insallation problem or envoirnemnt variable problem?

when i have installed it gives folowing message at time of installation

Step no: 6 of 7 | Installation
--------------------------------------------------------------------------------
Each component will be installed individually. If you cancel the installation,
components that have been completely installed will remain on your system. This
installation may take several minutes, depending on your system and the options
you selected.
--------------------------------------------------------------------------------
Installing Amplifier XE Command line interface component...
ERROR: Package is corrupted. Installation cannot continue.
--------------------------------------------------------------------------------
Installing Inspector XE Command line interface component...
ERROR: Package is corrupted. Installation cannot continue.
--------------------------------------------------------------------------------
Installing Advisor XE Command line interface component...
ERROR: Package is corrupted. Installation cannot continue.
--------------------------------------------------------------------------------
Installing Intel C++ Compiler XE 13.0 Update 1 on IA-32 component... failed
--------------------------------------------------------------------------------
Installing Intel C++ Compiler XE 13.0 Update 1 on Intel(R) 64 component... done
--------------------------------------------------------------------------------
Installing Intel Debugger 13.0 Update 1 on IA-32 component... failed
--------------------------------------------------------------------------------
Installing Intel Debugger 13.0 Update 1 on Intel(R) 64 component... done
--------------------------------------------------------------------------------
Installing Intel Math Kernel Library 11.0 Update 1 on IA-32 component... failed
--------------------------------------------------------------------------------
Installing Intel Math Kernel Library 11.0 Update 1 on Intel(R) 64 component... done
--------------------------------------------------------------------------------
Installing Intel Integrated Performance Primitives 7.1 Update 1 on IA-32
component... failed
--------------------------------------------------------------------------------
Installing Intel Integrated Performance Primitives 7.1 Update 1 on Intel(R) 64
component... done
--------------------------------------------------------------------------------
Installing Intel Threading Building Blocks 4.1 Update 1 core files and examples
component... done
--------------------------------------------------------------------------------
Finalizing installation... done
--------------------------------------------------------------------------------
Step no: 7 of 7 | Complete
--------------------------------------------------------------------------------
Thank you for installing and using the
Intel(R) C++ Studio XE 2013 Update 1 for Linux*

Reminder: Intel(R) VTune(TM) Amplifier XE users must be members of the "vtune"
permissions group in order to use Event-based Sampling.

To register your product purchase, visit
https://registrationcenter.intel.com/RegCenter/registerexpress.aspx?clie...
P-J64NKNPZ

To get started using Intel(R) VTune(TM) Amplifier XE 2013 Update 2:
    - To set your environment variables: source
/opt/intel/vtune_amplifier_xe_2013/amplxe-vars.sh
    - To start the graphical user interface: amplxe-gui
    - To use the command-line interface: amplxe-cl
    - For more getting started resources: /opt/intel/vtune_amplifier_xe_2013/
      documentation/en/welcomepage/get_started.html.
To get started using Intel(R) Inspector XE 2013 Update 2:
    - To set your environment variables: source
/opt/intel/inspector_xe_2013/inspxe-vars.sh
    - To start the graphical user interface: inspxe-gui
    - To use the command-line interface: inspxe-cl
    - For more getting started resources: /opt/intel/inspector_xe_2013/
      documentation/en/welcomepage/get_started.html.
To get started using Intel(R) Advisor XE 2013 Update 1:
    - To set your environment variables: source
/opt/intel/advisor_xe_2013/advixe-vars.sh
    - To start the graphical user interface: advixe-gui
    - To use the command-line interface: advixe-cl
    - For more getting started resources: /opt/intel/advisor_xe_2013/
      documentation/en/welcomepage/get_started.html.
To get started using Intel(R) Composer XE 2013 Update 1 for Linux*:
    - 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 /opt/intel/bin/compilervars.csh intel64
      For bash:
           $ source /opt/intel/bin/compilervars.sh intel64
      To invoke the installed compilers:
           For C++: icpc
           For C: icc

      To get help, append the -help option or precede with the man command.
    - For more getting started resources:
           /opt/intel/composer_xe_2013/Documentation/en_US/get_started_lc.htm.

To view movies and additional training, visit
http://www.intel.com/software/products.

--------------------------------------------------------------------------------
q. Quit [default]
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [q]:

7 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

Error 2 : I have write Matrix multiplication program.
using following command I got some error.
root@swapnil-lp:/opt/xe_composer# icc -02 MatrixMulti.c
icc: command line warning #10006: ignoring unknown option '-02'

If i execute following command then it executed:
root@swapnil-lp:/opt/xe_composer# icc MatrixMulti.c
root@swapnil-lp:/opt/xe_composer#

Hi,

you used the number 0 (zero) instead of the letter O :-)

Alex

Hi Alexander,
ok just forget this error for some time but for my above problem is not using any numbre how will i solve this. What is meaning of -o
gcc -o2 MatrixMulti.c -o MatrixMulti_gcc_o2

Please tell me meaning of -o2

If your problem relates to learning how to install the compile tools for Intel(c) Xeon Phi(tm) you might do better to post on the appropriate forum. There is an option to download the KNC libraries associated with your compiler at https://registrationcenter.intel.com in case you don't have the co-processor card and are simply trying to cross-compile.
If you insist on being so selective about reading answers, I will be replying to your posts only in the hope that others may read.
The compiler would likely take -o2 as a -o option, but your second -o option should over-ride the first.

I think you wanted to write: gcc -O2 MatrixMulti.c -o MatrixMulti_gcc_o2
The difference is the capital -O2 instead of a lower case one you used.
The capital -O specifies the optimization level. The lower case -o specifies the output file name. If you not specify the the output file name, the compiler will generate a file with the name "a.out".

If you want to know more about compiler parameters for the Intel® C++ Compiler please have a look in the documentation: http://software.intel.com/sites/products/documentation/doclib/stdxe/2013...

Thanks,
Alex

Thanks Alexander,
Now i am getting. Now I will check performance diffrence of each optimization level.

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi