Segmentation fault with cpu_selector, works with default and gpu.

TCE Options

TCE Level: 

TCE Open Date: 

Tuesday, January 14, 2020 - 03:49

Segmentation fault with cpu_selector, works with default and gpu.


An application https://gitlab.com/miptitep/syclbrot adapted from https://gitlab.com/VileLasagna/toyBrot compiles with the dpcpp and runs if the default selector is used (2de42a2009e3833e0631d2eb8e11266548ad7813) but fails with the cpu_selector (236bbf18ce65e9708ce1811fe25b55c2a6838b44). Reproduced in the DevCloud. Also works with the gpu_selector (now commit SHA, see the diff between the two and substitute accordingly). The error message emerges at the start of the compiled application: Running on Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz > Stack dump: > 0. Running pass 'Function Pass Manager' on module 'main'. > 1. Running pass 'VPlan Vectorization Driver' on function '' > Segmentation fault (core dumped) The stack trace obtained under Valgrind: Process terminating with default action of signal 11 (SIGSEGV) General Protection Fault at 0x2066129B: llvm::Constant::getAllOnesValue(llvm::Type*) (in /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/x64/libOclCpuBackEnd.so.2019.9.11.0) by 0x206612B9: llvm::Constant::getAllOnesValue(llvm::Type*) (in /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/x64/libOclCpuBackEnd.so.2019.9.11.0) by 0x206612B9: llvm::Constant::getAllOnesValue(llvm::Type*) (in /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/x64/libOclCpuBackEnd.so.2019.9.11.0) by 0x20664BCB: llvm::ConstantExpr::getNot(llvm::Constant*) (in /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/x64/libOclCpuBackEnd.so.2019.9.11.0) by 0x20B22E34: llvm::vpo::VPOCodeGen::vectorizeInstruction(llvm::vpo::VPInstruction*) (in /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/x64/libOclCpuBackEnd.so.2019.9.11.0) by 0x20B43E54: llvm::vpo::VPInstruction::execute(llvm::vpo::VPTransformState&) (in /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/x64/libOclCpuBackEnd.so.2019.9.11.0) by 0x20B4839D: llvm::vpo::VPBasicBlock::execute(llvm::vpo::VPTransformState*) (in /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/x64/libOclCpuBackEnd.so.2019.9.11.0) by 0x20B49A18: llvm::vpo::VPRegionBlock::execute(llvm::vpo::VPTransformState*) (in /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/x64/libOclCpuBackEnd.so.2019.9.11.0) by 0x20B49A18: llvm::vpo::VPRegionBlock::execute(llvm::vpo::VPTransformState*) (in /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/x64/libOclCpuBackEnd.so.2019.9.11.0) by 0x20B47AAF: llvm::vpo::VPlan::execute(llvm::vpo::VPTransformState*) (in /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/x64/libOclCpuBackEnd.so.2019.9.11.0) by 0x20B3A639: llvm::vpo::LoopVectorizationPlanner::executeBestPlan(llvm::vpo::VPOCodeGen&) (in /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/x64/libOclCpuBackEnd.so.2019.9.11.0) by 0x20A69725: bool llvm::vpo::VPlanDriver::processLoop(llvm::Loop*, llvm::Function&, llvm::vpo::WRNVecLoopNode*) (in /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/x64/libOclCpuBackEnd.so.2019.9.11.0) The full output is attached.

AttachmentSize
Downloadtext/plain valgrind.txt34.89 KB
3 posts / 0 new

Hi Savin,

Thanks for reaching out to us. We are working on this issue and we'll get back to you soon.

 

Anubhav


Hi Savin,

We are able to reproduce this Issue with cpu_selector as you mentioned. We are working on it. 

 

Anubhav

Leave a Comment

Please sign in to add a comment. Not a member? Join today