Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile a single file through the MPI compiler #214

Open
daydayup-echo opened this issue Jun 1, 2021 · 0 comments
Open

How to compile a single file through the MPI compiler #214

daydayup-echo opened this issue Jun 1, 2021 · 0 comments

Comments

@daydayup-echo
Copy link

Hi,all,
I would like to know how to compile a single file through the MPI (mpich_3.3.2) compiler mpicc? After consulting the user manual, I found that it does not support copying a single file to ~/global/testing to compile through “make myfile.x”.

  1. I successfully compiled the GA library according to the tutorial. The following is my execution process:
     mkdir bld
     cd bld
     ../configure --prefix=‘pwd‘
     make
     make install

  2. I also successfully built and ran the test sample in the following way:
     make check MPIEXEC="mpirun -np 4"
    image

  3. I add the include directory and lib directory to the environment variable and source it, and use “mpicc -o mytestc mytestc.c” to report an error when compiling:
    image

  4. I added the absolute path of the include directory and lib directory to the above "mytestc.c" and reported the following error:
    image

So, how can I run the program in my environment to call the GA library.
Here is the information of my environment:
Linux version 2.6.32-754.9.1.el6.x86_64 (mockbuild@x86-01.bsys.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) ) #1 SMP Thu Dec 6 08:02:15 UTC 2018

Looking forward to your answer, thanks!

Zhang,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant