NVIDIA / cuda-quantum

C++ and Python support for the CUDA Quantum programming model for heterogeneous quantum-classical workflows
https://nvidia.github.io/cuda-quantum/
Other
473 stars 172 forks source link

Remote-MQPU to support C++-17 standard #1111

Closed 1tnguyen closed 5 months ago

1tnguyen commented 8 months ago

Currently, --target remote-mqpu does not work with C++-17 standard. We need to add C++17 support for this target.

schweitzpgi commented 7 months ago

What is the error?

bmhowe23 commented 7 months ago

I believe you can search our codebase for FIXME: https://github.com/NVIDIA/cuda-quantum/issues/1111. Here is one example: https://github.com/NVIDIA/cuda-quantum/blob/main/test/Remote-Sim/args_parsing.cpp#L11 .

I wonder if it's possible that it's also just missing the %cpp_std from those tests?

schweitzpgi commented 7 months ago

The linked one [Ed: all of them] has a REQUIRES: c++20 which empirically avoids the broken configuration.

Still would be good to know what the failure mode actually is.

bettinaheim commented 7 months ago

The linked one [Ed: all of them] has a REQUIRES: c++20 which empirically avoids the broken configuration.

Still would be good to know what the failure mode actually is.

I just checked. 3 tests pass when setting the appropriate --std=c++17 flag, the the failures for the others are the following:

These all run into the same issue, which looks related to serialization/deserialization (@1tnguyen I though we didn't have a new dependency there, do we?):

bettinaheim commented 6 months ago

Possibly related: https://github.com/NVIDIA/cuda-quantum/issues/1281