Hello, I have been having some issues with trying to get OpenMPI working with mpi4py. I've tried to break down my troubleshooting into a few chunks below, and I believe that there are a few, distinct issues that need solving.
Following some troubleshooting in the following link: https://bitbucket.org/mpi4py/mpi4py/issues/69/building-mpi4py-with-openmpi-gives-error -the mpi4py folks have suggested it an issue that might be better answered here. In summary, I have attempted to install OpenMPI on Ubuntu 16.04 to the following prefix: /opt/openmpi-openmpi-2.1.0. I have also manually added the following to my .bashrc: export PATH="/opt/openmpi/openmpi-2.1.0/bin:$PATH" MPI_DIR=/opt/openmpi/openmpi-2.1.0 export LD_LIBRARY_PATH=$MPI_DIR/lib:$LD_LIBRARY_PATH I later became aware that Ubuntu may handle the LD_LIBRARY_PATH differently and instead added a new file containing the library path /opt/openmpi/openmpi-2.1.0/lib to /etc/ld.so.conf.d/openmpi-2-1-0.conf, in the style of everything else in that directory. I tried to run "mpicc helloworld.c -o hello.bin" as a test on a demo file (as instructed in the link) to check the installation but I had permission issues, since it was installed win opt. However, when I attempted to run the previous with sudo, or sudo -E, in both cases, mpicc could not be found. (Perhaps this is a separate issue with my sudo env) To check that mpicc actually works, I have copied helloworld.c to a directory where I could execute mpicc without sudo. On running the above command, I receive the following error: mpicc: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libOpenCL.so.1: no version information available (required by /opt/openmpi/openmpi-2.1.0/lib/libopen-pal.so.20) /opt/openmpi/openmpi-2.1.0/lib/libopen-pal.so.20: undefined reference to `clGetPlatformInfo@OPENCL_1.0' /opt/openmpi/openmpi-2.1.0/lib/libopen-pal.so.20: undefined reference to `clGetPlatformIDs@OPENCL_1.0' /opt/openmpi/openmpi-2.1.0/lib/libopen-pal.so.20: undefined reference to `clGetDeviceInfo@OPENCL_1.0' /opt/openmpi/openmpi-2.1.0/lib/libopen-pal.so.20: undefined reference to `clGetDeviceIDs@OPENCL_1.0' collect2: error: ld returned 1 exit status I am unsure if I have an installation or permission issues, and I'd be grateful if anyone can shed some light based on the trials I've done so far. (I should add I also have a CUDA installation, which I'd like to leverage too, if possible). I'm still fairly new to the ins and outs of this, so I may have missed something obvious. Please let me know if any other info is required. Many thanks and kind regards, Tim -- *Timothy Jim**PhD Researcher in Aerospace* Creative Flow Research Division, Institute of Fluid Science, Tohoku University www.linkedin.com/in/timjim/
_______________________________________________ users mailing list users@lists.open-mpi.org https://rfd.newmexicoconsortium.org/mailman/listinfo/users