[llvm-bugs] [Bug 51065] New: ICE at the reduction of complex numbers in OpenMP offload

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 12 10:53:55 PDT 2021


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

            Bug ID: 51065
           Summary: ICE at the reduction of complex numbers in OpenMP
                    offload
           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

ightly test starts to fail since sunday 2021-07-11 06:33:02 UTC

https://github.com/ye-luo/openmp-target/blob/master/tests/complex/complex_reduction.cpp

clang++ -fopenmp -fopenmp-targets=nvptx64 -Xopenmp-target -march=sm_60 -O3
complex_reduction.cpp

sm_70 and sm_80 works fine

see full error


clang-13:
/home/ci/ecp/working/jlselogin3/batch-03/intel-dga/automatedtests/yeluo/test_llvm/builds/users/yeluo/NFStdQBJ/0/intel-dga/automatedtests/yeluo/test_llvm/llvm-project/llvm/include/llvm/IR/InstrTypes.h:2297:
llvm::Value *llvm::CallBase::getOperand(unsigned int) const: Assertion
`i_nocapture < OperandTraits<CallBase>::operands(this) && "getOperand() out of
range!"' 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/compilers/llvm/main-20210712/bin/clang-13 -cc1
-triple nvptx64 -aux-triple x86_64-unknown-linux-gnu -S -disable-free
-main-file-name complex_reduction.cpp -mrelocation-model pic -pic-level 2
-fhalf-no-semantic-interposition -mframe-pointer=all -fno-rounding-math
-fno-verbose-asm -no-integrated-as -mlink-builtin-bitcode
/soft/compilers/cuda/cuda-11.0.2/nvvm/libdevice/libdevice.10.bc -target-feature
+ptx70 -target-sdk-version=11.0 -mlink-builtin-bitcode
/soft/compilers/llvm/main-20210712/lib/libomptarget-nvptx-sm_60.bc -target-cpu
sm_60 -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb
-resource-dir /soft/compilers/llvm/main-20210712/lib/clang/13.0.0
-internal-isystem
/soft/compilers/llvm/main-20210712/lib/clang/13.0.0/include/openmp_wrappers
-include __clang_openmp_device_functions.h -c-isystem
/soft/compilers/cuda/cuda-11.0.2/include -c-isystem
/soft/packaging/spack-builds/linux-rhel7-x86_64/gcc-9.3.0/libxml2-2.9.9-2yk5s47fz25ngwxye6jx6ukvntdnb4af/include
-c-isystem
/soft/packaging/spack-builds/linux-rhel7-x86_64/gcc-9.3.0/xz-5.2.5-6rgt4w7in65lwhal6husiesraanx4dou/include
-c-isystem
/soft/packaging/spack-builds/linux-rhel7-x86_64/gcc-9.3.0/libiconv-1.16-zqp7gscw3ojfabhhzbeco7t26fuwypol/include
-c-isystem
/soft/packaging/spack-builds/linux-opensuse_leap15-x86_64/gcc-10.2.0/hdf5-1.10.7-uapcktd3szlmtouy63p4o3nofnsj5au6/include
-cxx-isystem
/soft/packaging/spack-builds/linux-rhel7-x86_64/gcc-9.3.0/libxml2-2.9.9-2yk5s47fz25ngwxye6jx6ukvntdnb4af/include
-cxx-isystem
/soft/packaging/spack-builds/linux-rhel7-x86_64/gcc-9.3.0/xz-5.2.5-6rgt4w7in65lwhal6husiesraanx4dou/include
-cxx-isystem
/soft/packaging/spack-builds/linux-rhel7-x86_64/gcc-9.3.0/libiconv-1.16-zqp7gscw3ojfabhhzbeco7t26fuwypol/include
-cxx-isystem
/soft/packaging/spack-builds/linux-opensuse_leap15-x86_64/gcc-10.2.0/hdf5-1.10.7-uapcktd3szlmtouy63p4o3nofnsj5au6/include
-internal-isystem /usr/lib64/gcc/x86_64-suse-linux/7/../../../../include/c++/7
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../include/c++/7/x86_64-suse-linux
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../include/c++/7/backward
-internal-isystem /usr/lib64/gcc/x86_64-suse-linux/7/../../../../include/c++/7
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../include/c++/7/x86_64-suse-linux
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../include/c++/7/backward
-internal-isystem /soft/compilers/llvm/main-20210712/lib/clang/13.0.0/include
-internal-isystem /usr/local/include -internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-internal-isystem /soft/compilers/llvm/main-20210712/lib/clang/13.0.0/include
-internal-isystem /usr/local/include -internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-fdeprecated-macro -fno-dwarf-directory-asm
-fdebug-compilation-dir=/home/yeluo/opt/openmp-target/tests/complex
-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/complex_reduction-07c028.bc
-D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/complex_reduction-1524ec.s -x c++
complex_reduction.cpp
1.      <eof> parser at end of file
2.      Optimizer
 #0 0x0000000002c2c1c3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x2c2c1c3)
 #1 0x0000000002c29ede llvm::sys::RunSignalHandlers()
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x2c29ede)
 #2 0x0000000002c2c54f SignalHandler(int) Signals.cpp:0:0
 #3 0x00007f8e80e9c2d0 __restore_rt (/lib64/libpthread.so.0+0x132d0)
 #4 0x00007f8e7f98b420 raise (/lib64/libc.so.6+0x39420)
 #5 0x00007f8e7f98ca01 abort (/lib64/libc.so.6+0x3aa01)
 #6 0x00007f8e7f983a1a __assert_fail_base (/lib64/libc.so.6+0x31a1a)
 #7 0x00007f8e7f983a92 (/lib64/libc.so.6+0x31a92)
 #8 0x00000000025ac978 (anonymous
namespace)::AAExecutionDomainFunction::updateImpl(llvm::Attributor&)
OpenMPOpt.cpp:0:0
 #9 0x00000000024e88b0 llvm::AbstractAttribute::update(llvm::Attributor&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x24e88b0)
#10 0x00000000024f05ec llvm::Attributor::updateAA(llvm::AbstractAttribute&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x24f05ec)
#11 0x00000000025ad225 llvm::AAExecutionDomain const&
llvm::Attributor::getOrCreateAAFor<llvm::AAExecutionDomain>(llvm::IRPosition,
llvm::AbstractAttribute const*, llvm::DepClassTy, bool, bool)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x25ad225)
#12 0x00000000025da69d (anonymous namespace)::OpenMPOpt::runAttributor(bool)
OpenMPOpt.cpp:0:0
#13 0x00000000025a944a (anonymous namespace)::OpenMPOpt::run(bool)
OpenMPOpt.cpp:0:0
#14 0x00000000025ab2b8 llvm::OpenMPOptCGSCCPass::run(llvm::LazyCallGraph::SCC&,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x25ab2b8)
#15 0x0000000003c69fcd llvm::detail::PassModel<llvm::LazyCallGraph::SCC,
llvm::OpenMPOptCGSCCPass, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x3c69fcd)
#16 0x0000000001c74ea1 llvm::PassManager<llvm::LazyCallGraph::SCC,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x1c74ea1)
#17 0x0000000002599a3d llvm::detail::PassModel<llvm::LazyCallGraph::SCC,
llvm::PassManager<llvm::LazyCallGraph::SCC,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x2599a3d)
#18 0x0000000001c78bac
llvm::DevirtSCCRepeatedPass::run(llvm::LazyCallGraph::SCC&,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x1c78bac)
#19 0x0000000002599eed llvm::detail::PassModel<llvm::LazyCallGraph::SCC,
llvm::DevirtSCCRepeatedPass, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&,
llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&,
llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x2599eed)
#20 0x0000000001c77313
llvm::ModuleToPostOrderCGSCCPassAdaptor::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x1c77313)
#21 0x0000000002599d3d llvm::detail::PassModel<llvm::Module,
llvm::ModuleToPostOrderCGSCCPassAdaptor, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x2599d3d)
#22 0x000000000248d7b4 llvm::PassManager<llvm::Module,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x248d7b4)
#23 0x0000000002595c1b llvm::ModuleInlinerWrapperPass::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x2595c1b)
#24 0x0000000003c68fed llvm::detail::PassModel<llvm::Module,
llvm::ModuleInlinerWrapperPass, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x3c68fed)
#25 0x000000000248d7b4 llvm::PassManager<llvm::Module,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x248d7b4)
#26 0x0000000002ec4b8d (anonymous
namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >) BackendUtil.cpp:0:0
#27 0x0000000002ebe0ef clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef,
llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x2ebe0ef)
#28 0x0000000003ba7faf
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x3ba7faf)
#29 0x0000000004563633 clang::ParseAST(clang::Sema&, bool, bool)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x4563633)
#30 0x000000000350b8e3 clang::FrontendAction::Execute()
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x350b8e3)
#31 0x000000000347c438
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x347c438)
#32 0x00000000035bdd02
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/soft/compilers/llvm/main-20210712/bin/clang-13+0x35bdd02)
#33 0x0000000000adc436 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/soft/compilers/llvm/main-20210712/bin/clang-13+0xadc436)
#34 0x0000000000ada31d ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)
driver.cpp:0:0
#35 0x0000000000ada00a main
(/soft/compilers/llvm/main-20210712/bin/clang-13+0xada00a)
#36 0x00007f8e7f97634a __libc_start_main (/lib64/libc.so.6+0x2434a)
#37 0x0000000000ad705a _start
/home/abuild/rpmbuild/BUILD/glibc-2.26/csu/../sysdeps/x86_64/start.S:122:0
clang-13: error: unable to execute command: Aborted
clang-13: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 13.0.0 (https://github.com/llvm/llvm-project.git
04f8ffd98306a0b0b60987208547ee6745b0fc3e)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /soft/compilers/llvm/master-nightly/bin
clang-13: note: diagnostic msg: Error generating preprocessed source(s).

-- 
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/20210712/e256e8dd/attachment-0001.html>


More information about the llvm-bugs mailing list