c - How to force OpenMPI to use GCC instead of ICC? Is recompiling OpenMPI necessary? -


I have a C-code for parallel computing written for GCC , and I I want to compile the cluster, which apparently uses mpicc via icc . I also wonder if I'm going to openmpi to use GCC for the time being appropriate for the code to be corrected by the ICC Code> ask instead. I do not have admin rights on that cluster, and I really do not want to mess up the original configuration.

If it is not possible to set it for example Makefile , then I hope that I can compile the openmpi in my home directory, but After this I need some guidance what should be done after that. Can you help me


UPDATE1

Makefile in

  cc = mpicc CFLAGS + = -DMPI  

and here are some openmpi files

  $ mpicc / usr / bin / mpicc lrwxr-xr-x / usr / bin / mpicc - & Gt; Opal_wrapper -rwxr-xr-x / usr / bin / opal_wrapper  

I know, if I can provide you more information.


was able to find the OpenMPI settings for UPDATE2 mpicc

  $ more / ,   

usr / local / share / openmpi / mpicc- wrapper- data.txt project = open mpei project_short = ompi version = 1.1.4 language = c compiler_env = cc compiler_flags_env = cflgs compiler = ICC extra_includes = openmpi preprocessor_flags = compiler_flags = -pthread linker_flags = libs = -lmpi -lorte -lopal -ldl -Wl, - export dynamic -lnsl -lutil -ldl required_file =

However, I No rights to edit this file, and the OPMI_CC = GCC compiler does not change is.


Update3

Environment variable cc = gcc does not help

  $ Cc Export CC = GCC $ countercurrent $ cc gcc $ $ net $ $ make ... ICC: ... errors  

UPDATE4

... but expor t OMPI_CC = GCC helps in the end (). I should remember one day that these are different things ...

In spite of this, binary was created, I got the following goodbye message

  / opt / intel / Fce / 9.1.036 / lib / libimf.so: Warning: Warning: feupdateenv is not implemented and always  

See.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -