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

undefined reference to `PMPI_Accumulate_c' when using Intel oneAPI 2024.1 #548

Open
adam-sim-dev opened this issue Mar 29, 2024 · 4 comments

Comments

@adam-sim-dev
Copy link

adam-sim-dev commented Mar 29, 2024

cmake -S . -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DWITH_MPI=On -DMPI_C_COMPILER=mpiicx -DMPI_CXX_COMPILER=mpiicpx -DBUILD_SHARED_LIBS=Off -DWITH_GOTCHA=Off -DCMAKE_INSTALL_PREFIX=./caliper -DCMAKE_INSTALL_LIBDIR=lib

cmake.log
make.log

@adam-sim-dev
Copy link
Author

adam-sim-dev commented Mar 29, 2024

There is no problem when I build Caliper using Intel oneAPI 2024.0. With oneAPI 2024.1, I can see, in /opt/intel/oneapi/mpi/latest/include/mpi.h, there is only

int MPI_Accumulate_c(const void *origin_addr, MPI_Count origin_count, MPI_Datatype origin_datatype,
                     int target_rank, MPI_Aint target_disp, MPI_Count target_count,
                     MPI_Datatype target_datatype, MPI_Op op, MPI_Win win)
                     MPICH_ATTR_POINTER_WITH_TYPE_TAG(1,3) MPICH_API_PUBLIC;

@daboehme
Copy link
Member

Hi @adam-sim-dev, interesting, thanks for the report! What system are you on?

@adam-sim-dev
Copy link
Author

Hi @adam-sim-dev, interesting, thanks for the report! What system are you on?

Ubuntu 22.04

@daboehme
Copy link
Member

Okay, thanks. It sounds like a bug in oneAPI since every MPI_ function is supposed to have a corresponding PMPI_ function, but I'll see if I can work around it.

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

2 participants