Score-P causing an invalid argument error with ROCm 5.3.3
Summary
I am using Score-P 8.4 to profile an application that uses OpenMPI v5 and ROCm v5.3.3. Everything is fine when I run my application without instrumentation, but when I enable Score-P, hipGetLastError returns "invalid argument". The application works and the experimental directory is created, but this error is a bit confusing.
Here is a minimal example to reproduce such behaviour:
#include <mpi.h>
#include <hip/hip_runtime.h>
int main(int argc, char** argv)
{
MPI_Init(&argc, &argv);
hipError_t error;
error = hipGetLastError();
if (error != hipSuccess)
{
std::cout << hipGetErrorString(error) << std::endl;
}
std::cout << "Hello, world!" << std::endl;
MPI_Finalize();
return 0;
}
export OMPI_CXX=scorep-hipcc
SCOREP_WRAPPER_INSTRUMENTER_FLAGS="--hip" scorep-mpicxx --offload-arch=gfx908 -gdwarf-4 hello.cpp
Edited by Lucius Vorenus