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

parallel studio cluster

sahgal__vardaan
Beginner
907 Views

Hi

 

I am using ubuntu 18.04 64 bit platform, working with intel compiler Parallel studio Xe_2019_cluster edition    ifort version 19.0.4.243

pl let me know what is the default integer size using intel compiler

 

1  how can i set flags to get 64 size ie i8 for mkl cluster  in bash file

2  how to find out the size (bit) of Open MPI installated

3  what is this error  and how to overcome this 

Could NOT find OpenMP_Fortran (missing: OpenMP_Fortran_FLAGS OpenMP_Fortran_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_Fortran_FOUND)

3 if i suppress, OPENMP and then run make i get error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI]

what does this mean... how can i resolve it

 

my bash file reads like this to set the environment

   source /opt/intel/compilers_and_libraries_2019/linux/bin/compilervars.sh intel64
   source /opt/intel/compilers_and_libraries_2019.4.243/linux/mkl/bin/mklvars.sh intel64 ilp64 mod

       export FCFLAGS=-i8

#    export CC=$(which mpicc)
#    export CXX=$(which mpicxx)
#     export FC=$(which mpif90)

 

export LD_LIBRARY_PATH="/opt/intel/lib"

export DYLD_LIBRARY_PATH="/opt/intel/lib"

export MANPATH="/opt/intel/man"

export PATH=/opt/intel/bin:$PATH

regards

 

vardaan

 

0 Kudos
7 Replies
Steve_Lionel
Honored Contributor III
907 Views

The default integer size in Intel Fortran is 32 bits. You can use the "-integer-size 64" compiler option to change that, but I would much rather see you declare things as the proper size in the program.

0 Kudos
sahgal__vardaan
Beginner
907 Views

sir, I tried using export FCFLAGS="-i8" in bash file but it did not work 

also used FCFFLAGS="-i8"

it still shows 4 bit inter size. what is the right command. kindly tell me. 

 

0 Kudos
PrasanthD_intel
Moderator
907 Views

Hi Vardaan,

1) By default the integer size in fortran is 4Bytes(32bits). If you want to make it 64bit use -integer-size 64 flag while compiling as mentioned by Steve Lionel.

The command looks like  

ifort -integer-size 64 filename.f90

Note : you can get the size in bytes using sizeof(var) function in fortran.

Please check this page for more info https://software.intel.com/en-us/fortran-compiler-developer-guide-and-reference-sizeof

2) If you are looking for the size of the folder in which Open MPI installed , then use this command to find the folder size in bytes.

du -s -B1 openMPI_Installed_Folder

 Alternately, if you are looking for the size of MPI_INT in OpenMPI it is 32bits . You can verify the size using sizeof(MPI_INT) in your fortran code.

3) Regarding this error , could you please provide your Cmake file so that we can debug the error. 

4) Regarding the error #7002: Error in opening the compiled module file. Check INCLUDE paths , Please refer to the below link

https://software.intel.com/en-us/forums/intel-fortran-compiler/topic/731300

The problem may be incorrect arrangement of modules.

 

Thanks 

Prasanth

 

 

 

 

 

 

0 Kudos
sahgal__vardaan
Beginner
907 Views

Prasanth sir

 

thank you for a detailed response. as desired cmakefile is attached. also attached is doc file containing details of the code.pl let me know if any other file is required

the code is question can be downloaded from      https://data.mendeley.com/datasets/3ptyfg2bmx/1

thanks and regards

 

vs

 

 

 

0 Kudos
PrasanthD_intel
Moderator
907 Views

Hi Vardaan,

I have tried with cmake file you have provided and it works fine for me. 
Maybe the problem is that the required intel fortran , impi and icc compilers were not sourced.

Please refer the Prerequisites/Before-you-begin sections of the below compilers:
 https://software.intel.com/en-us/get-started-with-mpi-for-linux
 https://software.intel.com/en-us/get-started-with-cpp-compiler-linux
 https://software.intel.com/en-us/get-started-with-fortran-compiler-linux
 
If you code do not require OpenMP , you can skip the section where it is failing by giving command as
cmake -DWITH_OPENMP=OFF <path>

The required environment variables will be set when you source the scripts, If you need to change please keep the previous path and do not override them.
eg : export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/custom/path/

Could you please specify your OpenMP version. You can get that by running this command 
echo |cpp -fopenmp -dM |grep -i open

 

Thanks

Prasanth

 

0 Kudos
PrasanthD_intel
Moderator
907 Views

Hi,

Is your issue resolved? Could you please confirm.

Reach out to us if you need any further help.

 

Thanks 

Prasanth

0 Kudos
PrasanthD_intel
Moderator
907 Views

Hi,

We are closing this thread considering the issue is resolved.

Please raise a new thread if you have any further queries.

 

Thanks

Prasanth

0 Kudos
Reply