Misleading error (JIT compilation issue) for remote-mqpu backend when MPI plugin is not activated #1281
Closed
3 of 4 tasks
Labels
user experience
Issue or PR that significantly impacts user experience
Milestone
Required prerequisites
Describe the bug
In some cases, the execution on the remote-mqpu backend fails with a JIT error along the lines of
JIT session error: Symbols not found: [ _Unwind_Resume, _ZNSaIcED2Ev, ...]
The error is caused by the invokeWrappedKernel logic in /runtime/common/JIT.cpp. Specifically, I think we are running into something like this: https://stackoverflow.com/questions/57612173/llvm-jit-symbols-not-found
The _Unwind_Resume symbol is from the GNU C++ standard library, specifically from libsupc++.a. I double checked that the produced executable itself (a.out) contains that symbol, so I suspect it is indeed something about these lines that is not working as expected:
Steps to reproduce the bug
Minimal repro:
Download the latest version of the CUDA Quantum installer for C++, or build it from source. Then run
The installer can be build from source by building the cuda-quantum-assets:
docker build -t cuda-quantum-assets:latest -f docker/build/assets.Dockerfile .
and then building the installer:
DOCKER_BUILDKIT=1 docker build -f docker/release/installer.Dockerfile --build-arg base_image=cuda-quantum-assets:latest . --output out
Expected behavior
The example should compile and run without error.
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
Suggestions
No response
The text was updated successfully, but these errors were encountered: