Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28456 Discussions

ERROR: architecture is not defined. Accepted values: ia32, intel64

wang__ningning
Beginner
1,441 Views

Hi, 

Recently, I want to install the Intel FORTRAN compiler. After I finished the installation, I tried setting the environment variables as

//# examples: (assuming <install-dir> is /installed/compiler/) prompt> source /installed/compiler/bin/compilervars.sh intel64 prompt> . /installed/compiler/bin/compilervars.sh intel64

I get

./compilervars.sh intel64

ERROR: architecture is not defined. Accepted values: ia32, intel64

Syntax:
  source mklvars.sh <arch> [MKL_interface] [mod]

   <arch> must be one of the following
       ia32         : Setup for IA-32 architecture
       intel64      : Setup for Intel(R) 64 architecture

   mod (optional) - set path to Intel(R) MKL F95 modules

   MKL_interface (optional) - Intel(R) MKL programming interface for intel64
                              Not applicable without mod
       lp64         : 4 bytes integer (default)
       ilp64        : 8 bytes integer

If the arguments to the sourced script are ignored (consult docs for
your shell) the alternative way to specify target is environment
variables COMPILERVARS_ARCHITECTURE or MKLVARS_ARCHITECTURE to pass
<arch> to the script, MKLVARS_INTERFACE to pass <MKL_interface> and
MKLVARS_MOD to pass <mod>

The Intel FORTRAN compiler is "parallel_studio_xe_2020_cluster_edition.tgz" and system is ubuntu. 

0 Kudos
3 Replies
Barbara_P_Intel
Moderator
1,441 Views

It's not clear to me what you actually typed. Did you "source" the file?   The complete command is "source ./compilervars.sh intel64" if you are running bash.

 

0 Kudos
wang__ningning
Beginner
1,441 Views

yeah,I have done this commond "source ./compilervars.sh intel64", then run "./compilervars.sh intel64". 

my system feedback is 

./compilervars.sh intel64
Syntax: source daalvars.sh <arch>
Where <arch> is one of:
  ia32      - setup environment for IA-32 architecture
  intel64   - setup environment for Intel(R) 64 architecture

If the arguments to the sourced script are ignored (consult docs for
your shell) the alternative way to specify target is environment
variables COMPILERVARS_ARCHITECTURE or DAALVARS_ARCHITECTURE to pass
<arch> to the script.

ERROR: Architecture is not defined. Accepted values: ia32, intel64
ERROR: Architecture is not defined. Accepted values: ia32, intel64

ERROR: architecture is not defined. Accepted values: ia32, intel64

Syntax:
  source mklvars.sh <arch> [MKL_interface] [mod]

   <arch> must be one of the following
       ia32         : Setup for IA-32 architecture
       intel64      : Setup for Intel(R) 64 architecture

   mod (optional) - set path to Intel(R) MKL F95 modules

   MKL_interface (optional) - Intel(R) MKL programming interface for intel64
                              Not applicable without mod
       lp64         : 4 bytes integer (default)
       ilp64        : 8 bytes integer

If the arguments to the sourced script are ignored (consult docs for
your shell) the alternative way to specify target is environment
variables COMPILERVARS_ARCHITECTURE or MKLVARS_ARCHITECTURE to pass
<arch> to the script, MKLVARS_INTERFACE to pass <MKL_interface> and
MKLVARS_MOD to pass <mod>

ERROR: architecture is not defined. Accepted values: ia32, intel64
Syntax: ippvars.sh <arch> [-arch <arch>] [-platform <platform>]

  <arch> must be one of the following:
      ia32           : Set up for IA-32 target.
      intel64        : Set up for Intel(R)64 target.
  <platform> must be of the following:
      linux          : Set to Linux target.
      mac            : Set to Mac target.
      android        : Set to Android target.

If the arguments to the sourced script are ignored (consult docs
for your shell) the alternative way to specify target is environment
variables COMPILERVARS_ARCHITECTURE to pass <arch> to the script
and COMPILERVARS_PLATFORM to pass <platform>
./compilervars.sh: 74: [: intel64: unexpected operator
 

Are shell script input parameters insufficient?

0 Kudos
jimdempseyatthecove
Honored Contributor III
1,441 Views

>>I have done this commond "source ./compilervars.sh intel64", then run "./compilervars.sh intel64". 

You are to only perform  "source ./compilervars.sh intel64" to setup the environment variables for the current bash shell.

This is to be performed once on entry into the bash shell that is used to build your Intel Fortran or C++ applications.

MKL has a similar shell script that you also "source ... intel64"

Jim Dempsey

 

0 Kudos
Reply