Following the discussion in #43 about the issue there being potentially a compiler bug I decided to try and compile the downstream library I am working on XDG using nvc++ rather than llvm/clang and I came across what seemed to be a code generation bug when using the method box_t::extend() for creation of bounding boxes on device.
I have created a minimal working example here - https://github.com/Waqar-ukaea/cuBQL-issue-reproducer. The specific main file can be found here - https://github.com/Waqar-ukaea/cuBQL-issue-reproducer/blob/main/reproducers/bounds_extend_fail.cpp. When running the executable after compilation with clang vs nvc++:
Compiling with llvm/clang-22 there is no issues. However compilation with nvc++ seems to fail.
EDIT - nvc++ seems to have no issue when the CMake build type is set to Debug (-g -O0) with no optimization but when set to Release (-fast -O3) it fails to compile with the error shown above.
Following the discussion in #43 about the issue there being potentially a compiler bug I decided to try and compile the downstream library I am working on XDG using nvc++ rather than llvm/clang and I came across what seemed to be a code generation bug when using the method
box_t::extend()for creation of bounding boxes on device.I have created a minimal working example here - https://github.com/Waqar-ukaea/cuBQL-issue-reproducer. The specific main file can be found here - https://github.com/Waqar-ukaea/cuBQL-issue-reproducer/blob/main/reproducers/bounds_extend_fail.cpp. When running the executable after compilation with
clangvsnvc++:Compiling with llvm/clang-22 there is no issues. However compilation with nvc++ seems to fail.
EDIT - nvc++ seems to have no issue when the CMake build type is set to
Debug(-g -O0) with no optimization but when set toRelease(-fast -O3) it fails to compile with the error shown above.