You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kernel1.name __nvqppBuilderKernel_367535629127
module {
func.func @__nvqpp__mlirgen____nvqppBuilderKernel_367535629127(%arg0: !quake.ref) {
return
}
}
kernel2.name __nvqppBuilderKernel_093606261879
module {
func.func @__nvqpp__mlirgen____nvqppBuilderKernel_093606261879(%arg0: !quake.ref) {
call @__nvqpp__mlirgen____nvqppBuilderKernel_367535629127(%arg0) : (!quake.ref) -> ()
return
}
func.func @__nvqpp__mlirgen____nvqppBuilderKernel_367535629127(%arg0: !quake.ref) {
return
}
}
kernel3.name __nvqppBuilderKernel_202375922897
loc("-":3:5): error: 'func.call' op '__nvqpp__mlirgen____nvqppBuilderKernel_367535629127' does not reference a valid function
terminate called after throwing an instance of 'std::runtime_error'
what(): cudaq::builder failed to JIT compile the Quake representation.
Aborted
The code successfully serializes the first two kernels, and but fails to serialize the third.
The missing symbol is the same symbol used by the other kernels to describe the innermost kernel.
Note, the code is compiled without any additional flags on the latest docker image (ghcr.io/nvidia/cuda-quantum@sha256:92e55d523b5124a22868472ef5bf532a7647d6173f5d12a371dd0f46f8570330).
Expected behavior
The above program shouldn't fail. Instead, the last "section" should result in an output similar to the following text:
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
Docker image: I've used the latest version of the cuda-quantum image: ghcr.io/nvidia/cuda-quantum@sha256:92e55d523b5124a22868472ef5bf532a7647d6173f5d12a371dd0f46f8570330. I couldn't find the correct the exact CUDA Quantum version used in this image (either the version or the commit hash).
CUDA Quantum version: I've used the builtin version of the CUDA Quantum library in the docker image
C++ compiler: I've used the builtin nvq++ in the docker image
Operating system: I've used the docker image
Suggestions
No response
The text was updated successfully, but these errors were encountered:
* Fix kernel_builder nested function call bug, #332
Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
* Update to also look for quake.apply
Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
---------
Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
* Fix kernel_builder nested function call bug, NVIDIA#332
Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
* Update to also look for quake.apply
Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
---------
Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
Required prerequisites
Describe the bug
Calling cudaq::kernel_builder::to_quake with nested kernel calls fails because the serializer can't find the innermost kernel symbol.
Steps to reproduce the bug
The output of the following program:
Is:
The code successfully serializes the first two kernels, and but fails to serialize the third.
The missing symbol is the same symbol used by the other kernels to describe the innermost kernel.
Note, the code is compiled without any additional flags on the latest docker image (
ghcr.io/nvidia/cuda-quantum@sha256:92e55d523b5124a22868472ef5bf532a7647d6173f5d12a371dd0f46f8570330
).Expected behavior
The above program shouldn't fail. Instead, the last "section" should result in an output similar to the following text:
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
ghcr.io/nvidia/cuda-quantum@sha256:92e55d523b5124a22868472ef5bf532a7647d6173f5d12a371dd0f46f8570330
.I couldn't find the correct the exact CUDA Quantum version used in this image (either the version or the commit hash).
nvq++
in the docker imageSuggestions
No response
The text was updated successfully, but these errors were encountered: