Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit 14bcea1f authored by Philipp Samfaß's avatar Philipp Samfaß
Browse files

fixed compilation

parent 5c08c37b
SMARTMPI_LIB=../../mpi_offloading/build/smartmpi_lib
SMARTMPI_INC=../../mpi_offloading/smartmpi_lib
CC=mpicxx
CFLAGS += -fPIC -g -Wall -std=c++11 -I${HOME}/mpi_offloading/offloading_lib
LDFLAGS += -shared -L${HOME}/mpi_offloading/offloading_lib -lmpioffloading
CFLAGS += -fPIC -g -Wall -std=c++11 -I${SMARTMPI_INC}
LDFLAGS += -shared -L${SMARTMPI_LIB} -lsmartmpi
SRC = Rank.cpp RankControl.cpp Timing.cpp Wrapper.cpp teaMPI.cpp
DEP = Rank.h RankControl.h Timing.h Wrapper.h Logging.h teaMPI.h
......
......@@ -17,7 +17,7 @@
int MPI_Init(int *argc, char*** argv) {
int err = PMPI_Init(argc, argv);
#ifdef USE_MPI_OFFLOADING
ompi_init( (*argv)[0]);
smpi_init( (*argv)[0]);
if(!_is_server)
initialiseTMPI(_comm);
#else
......@@ -29,7 +29,7 @@ int MPI_Init(int *argc, char*** argv) {
int MPI_Init_thread( int *argc, char ***argv, int required, int *provided ) {
int err = PMPI_Init_thread(argc, argv, required, provided);
#ifdef USE_MPI_OFFLOADING
ompi_init( (*argv)[0]);
smpi_init( (*argv)[0]);
if(!_is_server)
initialiseTMPI(_comm);
#else
......@@ -232,10 +232,10 @@ int MPI_Iprobe_offload(int source, int tag, MPI_Comm comm, int *flag, MPI_Status
int ierr;
assert(source==MPI_ANY_SOURCE);
#if COMMUNICATION_MODE==0
ierr = ompi_iprobe_offload_p2p(source, tag, comm, flag, status);
ierr = smpi_iprobe_offload_p2p(source, tag, comm, flag, status);
#elif COMMUNICATION_MODE==1
//ierr = ompi_iprobe_offload_rma(source, tag, comm, flag, status);
ierr = ompi_iprobe_offload_p2p(source, tag, comm, flag, status);
//ierr = smpi_iprobe_offload_rma(source, tag, comm, flag, status);
ierr = smpi_iprobe_offload_p2p(source, tag, comm, flag, status);
#endif
status->MPI_SOURCE = mapWorldToTeamRank(status->MPI_SOURCE);
return ierr;
......@@ -244,18 +244,18 @@ int MPI_Iprobe_offload(int source, int tag, MPI_Comm comm, int *flag, MPI_Status
int MPI_Send_offload(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
#if COMMUNICATION_MODE==0
return ompi_send_offload_p2p(buf, count, datatype, translateRank(comm, dest, _comm), tag, comm);
return smpi_send_offload_p2p(buf, count, datatype, translateRank(comm, dest, _comm), tag, comm);
#elif COMMUNICATION_MODE==1
return ompi_send_offload_rma(buf, count, datatype, translateRank(comm, dest, _comm), tag, comm);
return smpi_send_offload_rma(buf, count, datatype, translateRank(comm, dest, _comm), tag, comm);
#endif
}
int MPI_Recv_offload(void *buf, int count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Status_Offload *stat) {
#if COMMUNICATION_MODE==0
return ompi_recv_offload_p2p(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat);
return smpi_recv_offload_p2p(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat);
#elif COMMUNICATION_MODE==1
//return ompi_recv_offload_rma(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat);
return ompi_recv_offload_p2p(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat);
//return smpi_recv_offload_rma(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat);
return smpi_recv_offload_p2p(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat);
#endif
}
......@@ -333,7 +333,7 @@ int MPI_Finalize() {
Timing::outputTiming();
#ifdef USE_MPI_OFFLOADING
}
ompi_finalize();
smpi_finalize();
#endif
return PMPI_Finalize();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment