-
Notifications
You must be signed in to change notification settings - Fork 12.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flang-new of the main llvm branch produces the following error on the line !$omp target teams distribute parallel do num_teams(220) #109755
Comments
@llvm/issue-subscribers-flang-ir Author: Ilkhom Abdurakhmanov (ilkhomab) flang-new -fopenmp --offload-arch=gfx90a -o omp.flang omp.f90 -O3 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: I attached omp-gfx90a-1296ba, omp-aa6131 and omp-gfx90a-1296ba.sh in txt format to be able to upload. |
Lowering of the distribute construct (to LLVM) is a work in progress. |
flang-new -fopenmp --offload-arch=gfx90a -o omp.flang omp.f90 -O3
error: loc("/software/projects/pawsey0001/ilkhom/ACC/ACC/omp.f90":34:11): unsupported OpenMP operation: omp.distribute
error: loc("/software/projects/pawsey0001/ilkhom/ACC/ACC/omp.f90":34:11): LLVM Translation failed for operation: omp.distribute
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new -fc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -fcolor-diagnostics -mrelocation-model pic -pic-level 2 -pic-is-pie -target-cpu x86-64 -fversion-loops-for-stride -fopenmp -resource-dir /software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/lib/clang/20 -fopenmp-targets=amdgcn-amd-amdhsa -mframe-pointer=none -O3 -o /tmp/omp-fc79bd.bc -x f95-cpp-input omp.f90
#0 0x0000000002d0b41e llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x2d0b41e)
#1 0x0000000002d08bbb SignalHandler(int) Signals.cpp:0:0
#2 0x0000154afb264910 __restore_rt (/lib64/libpthread.so.0+0x16910)
#3 0x0000000006f016c1 llvm::CodeExtractor::findAllocas(llvm::CodeExtractorAnalysisCache const&, llvm::SetVector<llvm::Value*, llvm::SmallVector<llvm::Value*, 0u>, llvm::DenseSet<llvm::Value*, llvm::DenseMapInfo<llvm::Value*, void>>, 0u>&, llvm::SetVector<llvm::Value*, llvm::SmallVector<llvm::Value*, 0u>, llvm::DenseSet<llvm::Value*, llvm::DenseMapInfo<llvm::Value*, void>>, 0u>&, llvm::BasicBlock*&) const (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x6f016c1)
#4 0x0000000006a316fb llvm::OpenMPIRBuilder::createParallel(llvm::OpenMPIRBuilder::LocationDescription const&, llvm::IRBuilderBase::InsertPoint, llvm::function_ref<void (llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)>, llvm::function_ref<llvm::IRBuilderBase::InsertPoint (llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint, llvm::Value&, llvm::Value&, llvm::Value*&)>, std::function<void (llvm::IRBuilderBase::InsertPoint)>, llvm::Value*, llvm::Value*, llvm::omp::ProcBindKind, bool) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x6a316fb)
#5 0x00000000045d466b convertOmpParallel(mlir::omp::ParallelOp, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&) OpenMPToLLVMIRTranslation.cpp:0:0
#6 0x00000000045e8e0f convertHostOrTargetOperation(mlir::Operation*, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&) OpenMPToLLVMIRTranslation.cpp:0:0
#7 0x000000000525b9ee mlir::LLVM::ModuleTranslation::convertOperation(mlir::Operation&, llvm::IRBuilderBase&, bool) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x525b9ee)
#8 0x000000000525ff63 mlir::LLVM::ModuleTranslation::convertBlockImpl(mlir::Block&, bool, llvm::IRBuilderBase&, bool) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x525ff63)
#9 0x00000000045dec41 convertOmpOpRegions(mlir::Region&, llvm::StringRef, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&, llvm::LogicalResult&, llvm::SmallVectorImplllvm::PHINode*) OpenMPToLLVMIRTranslation.cpp:0:0
#10 0x00000000045eb908 void llvm::function_ref<void (llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)>::callback_fn<convertOmpTeams(mlir::omp::TeamsOp, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&)::'lambda'(llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)>(long, llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint) OpenMPToLLVMIRTranslation.cpp:0:0
#11 0x0000000006a286e9 llvm::OpenMPIRBuilder::createTeams(llvm::OpenMPIRBuilder::LocationDescription const&, llvm::function_ref<void (llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)>, llvm::Value, llvm::Value*, llvm::Value*, llvm::Value*) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x6a286e9)
#12 0x00000000045eb3c6 convertHostOrTargetOperation(mlir::Operation*, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&) OpenMPToLLVMIRTranslation.cpp:0:0
#13 0x000000000525b9ee mlir::LLVM::ModuleTranslation::convertOperation(mlir::Operation&, llvm::IRBuilderBase&, bool) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x525b9ee)
#14 0x000000000525ff63 mlir::LLVM::ModuleTranslation::convertBlockImpl(mlir::Block&, bool, llvm::IRBuilderBase&, bool) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x525ff63)
#15 0x00000000045dec41 convertOmpOpRegions(mlir::Region&, llvm::StringRef, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&, llvm::LogicalResult&, llvm::SmallVectorImplllvm::PHINode*) OpenMPToLLVMIRTranslation.cpp:0:0
#16 0x00000000045e2072 llvm::IRBuilderBase::InsertPoint llvm::function_ref<llvm::IRBuilderBase::InsertPoint (llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)>::callback_fn<convertOmpTarget(mlir::Operation&, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&)::'lambda'(llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)>(long, llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint) OpenMPToLLVMIRTranslation.cpp:0:0
#17 0x0000000006a264ac createOutlinedFunction(llvm::OpenMPIRBuilder&, llvm::IRBuilderBase&, llvm::StringRef, llvm::SmallVectorImplllvm::Value*&, llvm::function_ref<llvm::IRBuilderBase::InsertPoint (llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)>&, llvm::function_ref<llvm::IRBuilderBase::InsertPoint (llvm::Argument&, llvm::Value, llvm::Value*&, llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)>&) OMPIRBuilder.cpp:0:0
#18 0x0000000006a26d15 std::_Function_handler<llvm::Function* (llvm::StringRef), emitTargetOutlinedFunction(llvm::OpenMPIRBuilder&, llvm::IRBuilderBase&, bool, llvm::TargetRegionEntryInfo&, llvm::Function*&, llvm::Constant*&, llvm::SmallVectorImplllvm::Value*&, llvm::function_ref<llvm::IRBuilderBase::InsertPoint (llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)>&, llvm::function_ref<llvm::IRBuilderBase::InsertPoint (llvm::Argument&, llvm::Value*, llvm::Value*&, llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)>&)::'lambda'(llvm::StringRef)>::_M_invoke(std::_Any_data const&, llvm::StringRef&&) OMPIRBuilder.cpp:0:0
#19 0x0000000006a14ec9 llvm::OpenMPIRBuilder::emitTargetRegionFunction(llvm::TargetRegionEntryInfo&, std::function<llvm::Function* (llvm::StringRef)>&, bool, llvm::Function*&, llvm::Constant*&) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x6a14ec9)
#20 0x0000000006a35a54 llvm::OpenMPIRBuilder::createTarget(llvm::OpenMPIRBuilder::LocationDescription const&, bool, llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint, llvm::TargetRegionEntryInfo&, llvm::ArrayRef, llvm::ArrayRef, llvm::SmallVectorImplllvm::Value*&, llvm::function_ref<llvm::OpenMPIRBuilder::MapInfosTy& (llvm::IRBuilderBase::InsertPoint)>, llvm::function_ref<llvm::IRBuilderBase::InsertPoint (llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)>, llvm::function_ref<llvm::IRBuilderBase::InsertPoint (llvm::Argument&, llvm::Value*, llvm::Value*&, llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)>, llvm::SmallVector<llvm::OpenMPIRBuilder::DependData, 2u>) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x6a35a54)
#21 0x00000000045d8be9 convertOmpTarget(mlir::Operation&, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&) (.part.0) OpenMPToLLVMIRTranslation.cpp:0:0
#22 0x00000000045ea5fe convertHostOrTargetOperation(mlir::Operation*, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&) OpenMPToLLVMIRTranslation.cpp:0:0
#23 0x000000000525b9ee mlir::LLVM::ModuleTranslation::convertOperation(mlir::Operation&, llvm::IRBuilderBase&, bool) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x525b9ee)
#24 0x000000000525ff63 mlir::LLVM::ModuleTranslation::convertBlockImpl(mlir::Block&, bool, llvm::IRBuilderBase&, bool) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x525ff63)
#25 0x0000000005261d41 mlir::LLVM::ModuleTranslation::convertOneFunction(mlir::LLVM::LLVMFuncOp) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x5261d41)
#26 0x00000000052632b8 mlir::LLVM::ModuleTranslation::convertFunctions() (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x52632b8)
#27 0x000000000526c22c mlir::translateModuleToLLVMIR(mlir::Operation*, llvm::LLVMContext&, llvm::StringRef, bool) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x526c22c)
#28 0x00000000030c9e0a Fortran::frontend::CodeGenAction::generateLLVMIR() (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x30c9e0a)
#29 0x00000000030cd3c8 Fortran::frontend::CodeGenAction::executeAction() (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x30cd3c8)
#30 0x0000000002d7192c Fortran::frontend::FrontendAction::execute() (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x2d7192c)
#31 0x0000000002d5c7ef Fortran::frontend::CompilerInstance::executeAction(Fortran::frontend::FrontendAction&) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x2d5c7ef)
#32 0x0000000002d7aded Fortran::frontend::executeCompilerInvocation(Fortran::frontend::CompilerInstance*) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x2d7aded)
#33 0x00000000012ed5c8 fc1_main(llvm::ArrayRef<char const*>, char const*) (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x12ed5c8)
#34 0x00000000011a2bb1 main (/software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang-new+0x11a2bb1)
#35 0x0000154afac5824d __libc_start_main (/lib64/libc.so.6+0x3524d)
#36 0x00000000012ec4ba _start /home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/start.S:122:0
flang-new: error: unable to execute command: Segmentation fault (core dumped)
flang-new: error: flang frontend command failed due to signal (use -v to see invocation)
flang-new version 20.0.0git (https://github.com/llvm/llvm-project fa089b0)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin
Configuration file: /software/projects/pawsey0001/ilkhom/spack/opt/spack/linux-sles15-zen3/gcc-13.3.0/llvm-main-6qenle5g2epunb7kwnqrjvge3nfsrcbe/bin/flang.cfg
flang-new: note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
flang-new: note: diagnostic msg: /tmp/omp-gfx90a-1296ba
flang-new: note: diagnostic msg: /tmp/omp-aa6131
flang-new: note: diagnostic msg: /tmp/omp-gfx90a-1296ba.sh
flang-new: note: diagnostic msg:
I attached omp-gfx90a-1296ba, omp-aa6131 and omp-gfx90a-1296ba.sh in txt format to be able to upload.
omp-gfx90a-1296ba.txt
omp-aa6131.txt
omp-gfx90a-1296ba.sh.txt
The text was updated successfully, but these errors were encountered: