OMPI-X / MOC

MPI Open MP Coordination library
0 stars 2 forks source link

Fix test compilation #1

Closed gvallee closed 6 years ago

gvallee commented 6 years ago

For now, I am using a handwritten Makefile to compile mpi_omp_hello.c

CC=clang
CFLAGS=-fopenmp
MPI_COMPILE_FLAGS=$(shell mpicc --showme:compile)
MPI_LINK_FLAGS=$(shell mpicc --showme:link)

all: mpi_omp_hello

mpi_omp_hello: mpi_omp_hello.c
    $(CC) -I/home/gvh/projects/OMPIX/codes/install/llvm/include \
        -I/home/gvh/projects/OMPIX/install/pmix/include \
        -I/home/gvh/projects/OMPIX/install/moc/include \
        -L/home/gvh/projects/OMPIX/install/pmix/lib \
        -L/home/gvh/projects/OMPIX/install/moc/lib \
        $(MPI_COMPILE_FLAGS) $(CFLAGS) $(MPI_LINK_FLAGS) \
        -o mpi_omp_hello mpi_omp_hello.c -lpmix -lmoc

clean:
    rm -f mpi_omp_hello