Problema #117

Erro ao compilar MPI com ICC

Added by Gabriel Winckler over 16 years ago. Updated over 16 years ago.

Status:ResolvidaStart date:28 Apr 2010
Priority:NormalDue date:
Assignee:Gabriel Winckler% Done:

0%

Category:-
Target version:-

Description

Ao se usar o mpiicc:

[winckler@access ~]$ mpiicc hello.c 
/opt/intel/impi/3.2.1.009/include/mpi.h(35): catastrophic error: #error directive: A wrong version of mpi.h file was included. Check include path.
  #            error A wrong version of mpi.h file was included. Check include path.
               ^

compilation aborted for hello.c (code 4)

History

#1 Updated by Gabriel Winckler over 16 years ago

  • Status changed from Em andamento to Resolvida

O problema estava no "source" das variáveis da intel.

O arquivo /etc/profile.d/intel.[c]sh estava carregando o ambiente 32bits.

Segue a versão corrigida (sh).

source /opt/intel/impi/3.2.1/bin64/mpivars.sh
source /opt/intel/Compiler/11.1/059/bin/ifortvars.sh intel64
source /opt/intel/Compiler/11.1/059/bin/iccvars.sh intel64

#2 Updated by Gabriel Winckler over 16 years ago

Esse erro também fazia com que todos os programas MPI fossem compilados com 32 bits, e não 64.

Gabriel Winckler wrote:

O problema estava no "source" das variáveis da intel.

O arquivo /etc/profile.d/intel.[c]sh estava carregando o ambiente 32bits.

Segue a versão corrigida (sh).

[...]

Also available in: Atom PDF