Open llvmbot opened 6 years ago
The patch that resolves this is here:
https://reviews.llvm.org/D47849
but it is not approved yet.
If you would like version of Clang which has the patch applied please go to:
Clone the Clang, LLVM and OpenMP repos AND checkout the patched-upstream branches on all the three. Build like you normally would.
Thanks,
--Doru
The code still does not compile because we missing full support for some math functions: fatal error: error in backend: Cannot select: t48: f64 = fpow t46, ConstantFP:f64<8.000000e-01> t46: f64,ch = load<(load 8 from %ir.arrayidx23)> t38, t45, undef:i64 t45: i64 = add t41, t44 t41: i64,ch = load<(load 8 from %ir.8)> t38, t40, undef:i64 t40: i64,ch = CopyFromReg t0, Register:i64 %4 t39: i64 = Register %4 t3: i64 = undef t44: i64 = shl t92, Constant:i32<3> t92: i64,ch = load<(dereferenceable load 4 from %ir.c), sext from i32> t38, FrameIndex:i64<26>, undef:i64 t1: i64 = FrameIndex<26> t3: i64 = undef t96: i32 = Constant<3> t3: i64 = undef t47: f64 = ConstantFP<8.000000e-01> In function: __omp_outlined__12
With (upstream) trunk I get the following error which doesn't look good either, but is completely different: [...]
Stack trace with debug build + assertions:
clang-7.0: <<<>>>/clang/src/trunk/lib/IR/Instructions.cpp:294: void llvm::CallInst::init(llvm::FunctionType , llvm::Value , ArrayRef<llvm::Value *>, ArrayRef
But I get the following output, which requests that I report the issue here:
[...]
clang-3.8: error: unable to execute command: Aborted (core dumped) clang-3.8: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.8.0 (ibmgithub:/CORAL-LLVM-Compilers/clang.git fc73231cc1447f6163740eb12b6f3fd5c69c6a1a) (ibmgithub:/CORAL-LLVM-Compilers/llvm.git 47cc905855d51360bcc523d2d290395073d87560) Target: powerpc64le-unknown-linux-gnu Thread model: posix InstalledDir: /sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/ clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin clang-3.8: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. clang-3.8: note: diagnostic msg: Error generating preprocessed source(s).
Yeah, and IBM really shouldn't be doing this: That's not upstream Clang :-(
With (upstream) trunk I get the following error which doesn't look good either, but is completely different: fatal error: error in backend: Cannot select: 0x61d3a38: f64 = fpow 0x61cc230, ConstantFP:f64<8.000000e-01> 0x61cc230: f64,ch = load<LD8[%135]> 0x61ef118, 0x61d1500, undef:i64 0x61d1500: i64 = add 0x61ccb88, 0x61d3c40 0x61ccb88: i64,ch = load<LD8[%60]> 0x61ef118, 0x5f622b0, undef:i64 0x5f622b0: i64,ch = CopyFromReg 0x48693c8, Register:i64 %5 0x61d3898: i64 = Register %5 0x61d0f50: i64 = undef 0x61d3c40: i64 = shl 0x61cc848, Constant:i32<3> 0x61cc848: i64,ch = load<LD4%43, sext from i32> 0x61ef118, FrameIndex:i64<25>, undef:i64 0x5fb7838: i64 = FrameIndex<25> 0x61d0f50: i64 = undef 0x61ecb48: i32 = Constant<3> 0x61d0f50: i64 = undef 0x61ecef0: f64 = ConstantFP<8.000000e-01> In function: __omp_outlined__12
Trying to debug with -v --save-temps: error: Invalid cast (Producer: 'LLVM7.0.0svn' Reader: 'LLVM 7.0.0svn')
@llvm/issue-subscribers-clang-codegen
Extended Description
I am trying to compile some code (attached) using:
clang++ mycode.cpp CumulativeTimer.cpp Timer.cpp random.cpp -fopenmp -fopenmp-targets=nvptx64-nvidia-cuda --cuda-path=/sw/summitdev/cuda/9.0.69 -std=c++11 -DGIT_HASH="\"Unknown\"" -Wall
But I get the following output, which requests that I report the issue here:
clang-3.8: /home/compteam/slave0/build_folder_trunk_ibm_inline/src/tools/clang/lib/CodeGen/CodeGenFunction.h:1989: clang::CodeGen::Address clang::CodeGen::CodeGenFunction::GetAddrOfLocalVar(const clang::VarDecl *): Assertion `it != LocalDeclMap.end() && "Invalid argument to GetAddrOfLocalVar(), no decl!"' failed.
0 0x0000000011bb7148 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11bb7148)
1 0x0000000011bb76b8 PrintStackTraceSignalHandler(void*) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11bb76b8)
2 0x0000000011bb7a84 SignalHandler(int) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11bb7a84)
3 0x00003fffa82b0478 0x478 __GI_abort
4 0x00003fffa82b0478
5 0x00003fffa82b0478 __assert_fail_base (+0x478)
6 0x00003fffa7d70d70 __GI___assert_fail (/lib64/libc.so.6+0x40d70)
7 0x00003fffa7d648a4 clang::CodeGen::CGOpenMPRuntimeNVPTX::createDataSharingInfo(clang::CodeGen::CodeGenFunction&) (/lib64/libc.so.6+0x348a4)
8 0x00003fffa7d64994 clang::CodeGen::CGOpenMPRuntimeNVPTX::registerParallelContext(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&) (/lib64/libc.so.6+0x34994)
9 0x000000001210653c emitCommonOMPParallelDirective(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, unsigned int) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x1210653c)
10 0x0000000012105484 void clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPDistributeParallelForDirective(clang::OMPDistributeParallelForDirective const&)::$_100>(long, clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12105484)
11 0x0000000011e20b64 clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&) const (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e20b64)
12 0x0000000011e4ee98 void llvm::function_ref<void (clang::CodeGen::CodeGenFunction&)>::callback_fn<clang::CodeGen::CodeGenFunction::EmitOMPDistributeLoop(clang::OMPLoopDirective const&, clang::CodeGen::RegionCodeGenTy const&)::$_64>(long, clang::CodeGen::CodeGenFunction&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e4ee98)
13 0x00000000120a75fc clang::CodeGen::CodeGenFunction::EmitOMPInnerLoop(clang::Stmt const&, bool, clang::Expr const, clang::Expr const, clang::Expr const*, llvm::function_ref<void (clang::CodeGen::CodeGenFunction&)> const&, llvm::function_ref<void (clang::CodeGen::CodeGenFunction&)> const&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120a75fc)
14 0x0000000011e4ed24 clang::CodeGen::CodeGenFunction::EmitOMPDistributeLoop(clang::OMPLoopDirective const&, clang::CodeGen::RegionCodeGenTy const&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e4ed24)
15 0x0000000011e225cc void clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPDistributeParallelForDirective(clang::OMPDistributeParallelForDirective const&)::$_67>(long, clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e225cc)
16 0x0000000011e31998 (anonymous namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&, clang::Stmt const*) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e31998)
17 0x0000000011e4ee1c clang::CodeGen::CGOpenMPRuntime::emitInlinedDirective(clang::CodeGen::CodeGenFunction&, clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, bool) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e4ee1c)
18 0x00000000120e4edc clang::CodeGen::CodeGenFunction::EmitOMPDistributeParallelForDirective(clang::OMPDistributeParallelForDirective const&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120e4edc)
19 0x00000000120d1ad4 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d1ad4)
20 0x0000000011e321a0 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e321a0)
21 0x0000000011e027e0 clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e027e0)
22 0x0000000011e0c22c clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e0c22c)
23 0x0000000011e0b120 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e0b120)
24 0x0000000011e02e34 void clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsCall(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, clang::SourceLocation, llvm::Value, llvm::ArrayRef<llvm::Value>)::$_31>(long, clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e02e34)
25 0x0000000011e024d4 (anonymous namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&, clang::Stmt const*) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e024d4)
26 0x000000001212c294 clang::CodeGen::CGOpenMPRuntime::emitInlinedDirective(clang::CodeGen::CodeGenFunction&, clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, bool) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x1212c294)
27 0x00000000120e4edc clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsCall(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, clang::SourceLocation, llvm::Value, llvm::ArrayRef<llvm::Value>) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120e4edc)
28 0x00000000120d1ad4 emitCommonOMPTeamsDirective(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, unsigned int, unsigned int) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d1ad4)
29 0x00000000121109b0 void clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPTargetTeamsDeviceFunction(clang::CodeGen::CodeGenModule&, llvm::StringRef, clang::OMPTargetTeamsDirective const&)::$_88>(long, clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x121109b0)
30 0x0000000011e295c0 (anonymous namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&, clang::Stmt const*) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e295c0)
31 0x0000000011e53794 clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt const&, bool, unsigned int, unsigned int, bool) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e53794)
32 0x00000000120e4edc clang::CodeGen::CGOpenMPRuntime::outlineTargetDirective(clang::OMPExecutableDirective const&, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120e4edc)
33 0x0000000011e169b8 clang::CodeGen::CGOpenMPRuntimeNVPTX::outlineTargetDirective(clang::OMPExecutableDirective const&, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e169b8)
34 0x00000000120d24a8 clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function&, llvm::Constant&, bool, clang::CodeGen::RegionCodeGenTy const&, unsigned int) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d24a8)
35 0x0000000012106ba0 clang::CodeGen::CGOpenMPRuntimeNVPTX::emitGenericKernel(clang::OMPExecutableDirective const&, clang::CodeGen::CGOpenMPRuntimeNVPTX::TargetKernelProperties const&, llvm::StringRef, llvm::Function&, llvm::Constant&, bool, clang::CodeGen::RegionCodeGenTy const&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12106ba0)
36 0x00000000120d2874 clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTargetOutlinedFunction(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function&, llvm::Constant&, bool, clang::CodeGen::RegionCodeGenTy const&, unsigned int) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d2874)
37 0x0000000012107b20 clang::CodeGen::CodeGenFunction::EmitOMPTargetTeamsDeviceFunction(clang::CodeGen::CodeGenModule&, llvm::StringRef, clang::OMPTargetTeamsDirective const&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12107b20)
38 0x0000000012108240 clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt const*, llvm::StringRef) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12108240)
39 0x0000000011e36284 clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt const*, llvm::StringRef) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e36284)
40 0x00000000120ddd70 clang::CodeGen::CGOpenMPRuntime::emitTargetFunctions(clang::GlobalDecl) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120ddd70)
41 0x00000000120ddb58 clang::CodeGen::CGOpenMPRuntime::emitTargetGlobal(clang::GlobalDecl) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120ddb58)
42 0x00000000120ddf2c clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120ddf2c)
43 0x00000000120de39c clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120de39c)
44 0x0000000011e76c5c (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e76c5c)
45 0x0000000011e7cb90 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e7cb90)
46 0x00000000127c6d6c clang::ParseAST(clang::Sema&, bool, bool) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x127c6d6c)
47 0x00000000127c4c4c clang::ASTFrontendAction::ExecuteAction() (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x127c4c4c)
48 0x0000000012dd72a4 clang::CodeGenAction::ExecuteAction() (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12dd72a4)
49 0x00000000122fe2dc clang::FrontendAction::Execute() (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x122fe2dc)
50 0x00000000127c36c0 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x127c36c0)
51 0x00000000122fda38 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x122fda38)
52 0x00000000122b8238 cc1_main(llvm::ArrayRef<char const>, char const, void*) (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x122b8238)
53 0x00000000123c1358 main (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x123c1358)
54 0x0000000010473ee0 generic_start_main.isra.0 (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x10473ee0)
55 0x0000000010471b20 __libc_start_main (/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x10471b20)
0 clang-3.8 0x0000000011bb7148 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 120 1 clang-3.8 0x0000000011bb76b8 2 clang-3.8 0x0000000011bb7a84 3 0x00003fffa82b0478 kernel_sigtramp_rt64 + 0 4 libc.so.6 0x00003fffa7d70d70 abort + 640 5 libc.so.6 0x00003fffa7d648a4 6 libc.so.6 0x00003fffa7d64994 assert_fail + 100 7 clang-3.8 0x000000001210653c clang::CodeGen::CGOpenMPRuntimeNVPTX::createDataSharingInfo(clang::CodeGen::CodeGenFunction&) + 4156 8 clang-3.8 0x0000000012105484 clang::CodeGen::CGOpenMPRuntimeNVPTX::registerParallelContext(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&) + 148 9 clang-3.8 0x0000000011e20b64 10 clang-3.8 0x0000000011e4ee98 11 clang-3.8 0x00000000120a75fc clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&) const + 220 12 clang-3.8 0x0000000011e4ed24 13 clang-3.8 0x0000000011e225cc clang::CodeGen::CodeGenFunction::EmitOMPInnerLoop(clang::Stmt const&, bool, clang::Expr const, clang::Expr const, clang::Expr const, llvm::function_ref<void (clang::CodeGen::CodeGenFunction&)> const&, llvm::function_ref<void (clang::CodeGen::CodeGenFunction&)> const&) + 1196 14 clang-3.8 0x0000000011e31998 clang::CodeGen::CodeGenFunction::EmitOMPDistributeLoop(clang::OMPLoopDirective const&, clang::CodeGen::RegionCodeGenTy const&) + 5320 15 clang-3.8 0x0000000011e4ee1c 16 clang-3.8 0x00000000120e4edc 17 clang-3.8 0x00000000120d1ad4 clang::CodeGen::CGOpenMPRuntime::emitInlinedDirective(clang::CodeGen::CodeGenFunction&, clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, bool) + 388 18 clang-3.8 0x0000000011e321a0 clang::CodeGen::CodeGenFunction::EmitOMPDistributeParallelForDirective(clang::OMPDistributeParallelForDirective const&) + 304 19 clang-3.8 0x0000000011e027e0 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const) + 1024 20 clang-3.8 0x0000000011e0c22c clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) + 172 21 clang-3.8 0x0000000011e0b120 clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) + 352 22 clang-3.8 0x0000000011e02e34 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const) + 260 23 clang-3.8 0x0000000011e024d4 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const) + 244 24 clang-3.8 0x000000001212c294 25 clang-3.8 0x00000000120e4edc 26 clang-3.8 0x00000000120d1ad4 clang::CodeGen::CGOpenMPRuntime::emitInlinedDirective(clang::CodeGen::CodeGenFunction&, clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, bool) + 388 27 clang-3.8 0x00000000121109b0 clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsCall(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, clang::SourceLocation, llvm::Value, llvm::ArrayRef<llvm::Value>) + 544 28 clang-3.8 0x0000000011e295c0 29 clang-3.8 0x0000000011e53794 30 clang-3.8 0x00000000120e4edc 31 clang-3.8 0x0000000011e169b8 clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt const&, bool, unsigned int, unsigned int, bool) + 1656 32 clang-3.8 0x00000000120d24a8 clang::CodeGen::CGOpenMPRuntime::outlineTargetDirective(clang::OMPExecutableDirective const&, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&) + 520 33 clang-3.8 0x0000000012106ba0 clang::CodeGen::CGOpenMPRuntimeNVPTX::outlineTargetDirective(clang::OMPExecutableDirective const&, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&) + 448 34 clang-3.8 0x00000000120d2874 clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function&, llvm::Constant&, bool, clang::CodeGen::RegionCodeGenTy const&, unsigned int) + 708 35 clang-3.8 0x0000000012107b20 clang::CodeGen::CGOpenMPRuntimeNVPTX::emitGenericKernel(clang::OMPExecutableDirective const&, clang::CodeGen::CGOpenMPRuntimeNVPTX::TargetKernelProperties const&, llvm::StringRef, llvm::Function&, llvm::Constant&, bool, clang::CodeGen::RegionCodeGenTy const&) + 288 36 clang-3.8 0x0000000012108240 clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTargetOutlinedFunction(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function&, llvm::Constant&, bool, clang::CodeGen::RegionCodeGenTy const&, unsigned int) + 208 37 clang-3.8 0x0000000011e36284 clang::CodeGen::CodeGenFunction::EmitOMPTargetTeamsDeviceFunction(clang::CodeGen::CodeGenModule&, llvm::StringRef, clang::OMPTargetTeamsDirective const&) + 132 38 clang-3.8 0x00000000120ddd70 clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt const, llvm::StringRef) + 976 39 clang-3.8 0x00000000120ddb58 clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt const, llvm::StringRef) + 440 40 clang-3.8 0x00000000120ddf2c clang::CodeGen::CGOpenMPRuntime::emitTargetFunctions(clang::GlobalDecl) + 284 41 clang-3.8 0x00000000120de39c clang::CodeGen::CGOpenMPRuntime::emitTargetGlobal(clang::GlobalDecl) + 92 42 clang-3.8 0x0000000011e76c5c clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 1004 43 clang-3.8 0x0000000011e7cb90 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl) + 304 44 clang-3.8 0x00000000127c6d6c 45 clang-3.8 0x00000000127c4c4c 46 clang-3.8 0x0000000012dd72a4 clang::ParseAST(clang::Sema&, bool, bool) + 564 47 clang-3.8 0x00000000122fe2dc clang::ASTFrontendAction::ExecuteAction() + 236 48 clang-3.8 0x00000000127c36c0 clang::CodeGenAction::ExecuteAction() + 320 49 clang-3.8 0x00000000122fda38 clang::FrontendAction::Execute() + 152 50 clang-3.8 0x00000000122b8238 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 2088 51 clang-3.8 0x00000000123c1358 clang::ExecuteCompilerInvocation(clang::CompilerInstance) + 4888 52 clang-3.8 0x0000000010473ee0 cc1_main(llvm::ArrayRef<char const>, char const, void*) + 1760 53 clang-3.8 0x0000000010471b20 main + 12800 54 libc.so.6 0x00003fffa7d54700 55 libc.so.6 0x00003fffa7d548f4 __libc_start_main + 196 Stack dump: