[llvm-bugs] [Bug 51649] New: OpenMPOpt hit assertion when using --cuda-noopt-device-debug

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 27 10:39:41 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51649

            Bug ID: 51649
           Summary: OpenMPOpt hit assertion when using
                    --cuda-noopt-device-debug
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: xw111luoye at gmail.com
                CC: llvm-bugs at lists.llvm.org

I tried to pass --cuda-noopt-device-debug to Clang to influence ptxas
invocation by clang and hit this assertion.

Using miniQMC.
cmake -D CMAKE_CXX_COMPILER=clang++ -D ENABLE_OFFLOAD=1 -D USE_OBJECT_TARGET=ON
-DCMAKE_CXX_FLAGS="-g --cuda-noopt-device-debug" ..


clang-14:
/home/yeluo/opt/llvm-clang/llvm-project/llvm/lib/Transforms/IPO/OpenMPOpt.cpp:2880:
virtual void {anonymous}::AAKernelInfoFunction::initialize(llvm::Attributor&):
Assertion `(KernelInitCB && KernelDeinitCB) && "Kernel without
__kmpc_target_init or __kmpc_target_deinit!"' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /soft/llvm/main-20210811/bin/clang-14 -cc1 -triple
nvptx64-nvidia-cuda -aux-triple x86_64-unknown-linux-gnu -S -disable-free
-main-file-name einspline_spo_omp.cpp -mrelocation-model pic -pic-level 2
-fhalf-no-semantic-interposition -mframe-pointer=none -menable-no-infs
-menable-no-nans -menable-unsafe-fp-math -fno-signed-zeros -mreassociate
-freciprocal-math -ffp-contract=fast -fno-rounding-math -ffast-math
-ffinite-math-only -fno-verbose-asm -no-integrated-as -mlink-builtin-bitcode
/usr/local/cuda-11.0/nvvm/libdevice/libdevice.10.bc -target-feature +ptx70
-target-sdk-version=11.0 -mlink-builtin-bitcode
/soft/llvm/main-20210811/lib/libomptarget-nvptx-sm_80.bc -target-cpu sm_80
-mllvm -treat-scalable-fixed-error-as-warning -debug-info-kind=constructor
-dwarf-version=2 -debugger-tuning=gdb -fno-dwarf-directory-asm -resource-dir
/soft/llvm/main-20210811/lib/clang/14.0.0 -dependency-file
CMakeFiles/qmcwfs.dir/einspline_spo_omp.cpp.o.d -MT
src/QMCWaveFunctions/CMakeFiles/qmcwfs.dir/einspline_spo_omp.cpp.o
-sys-header-deps -internal-isystem
/soft/llvm/main-20210811/lib/clang/14.0.0/include/openmp_wrappers -include
__clang_openmp_device_functions.h -D ADD_ -D H5_USE_16_API -D HAVE_CONFIG_H -D
restrict=__restrict__ -I /home/yeluo/opt/miniqmc/src -I
/home/yeluo/opt/miniqmc/build_clang_offload_MP/src -I
/home/yeluo/opt/miniqmc/src/Platforms -D __forceinline=inline -D NDEBUG
-internal-isystem /usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/x86_64-linux-gnu/c++/9
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/backward
-internal-isystem /usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/x86_64-linux-gnu/c++/9
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/backward
-internal-isystem /soft/llvm/main-20210811/lib/clang/14.0.0/include
-internal-isystem /usr/local/include -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-internal-isystem /soft/llvm/main-20210811/lib/clang/14.0.0/include
-internal-isystem /usr/local/include -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-Wall -Wno-unused-variable -Wno-overloaded-virtual -Wno-unused-private-field
-Wno-unused-local-typedef -Wvla -Wno-unknown-pragmas -Wmisleading-indentation
-Wno-unknown-cuda-version -std=c++14 -fdeprecated-macro
-fdebug-compilation-dir=/home/yeluo/opt/miniqmc/build_clang_offload_MP/src/QMCWaveFunctions
-ferror-limit 19 -fopenmp -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions
-fcolor-diagnostics -vectorize-loops -vectorize-slp -fopenmp-is-device
-fopenmp-host-ir-file-path /tmp/einspline_spo_omp-0393f3.bc
-D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/einspline_spo_omp-62d89d.s -x c++
/home/yeluo/opt/miniqmc/src/QMCWaveFunctions/einspline_spo_omp.cpp
1.      <eof> parser at end of file

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210827/9f6e2542/attachment-0001.html>


More information about the llvm-bugs mailing list