std_function_lambda fails on cuda and native/debug
native/debug (https://zivgitlab.uni-muenster.de/HPC2SE-Project/pacxx-samples/-/jobs/10930):
3/3 Test #31: std_function_lambda ..............***Exception: Other 1.77 sec
PlatformInfo {
Resolvers: [
ListR {
VectorMapping {
scalarFn = llvm.lifetime.end.p0i8
vectorFn = llvm.lifetime.end.p0i8
vectorW = 0
maskPos = -1
resultSh = uni
paramShs: {
(0) i64 %0 -> i64 %0 : uni
(1) i8* %1 -> i8* %1 : uni
}
}
VectorMapping {
scalarFn = llvm.lifetime.start.p0i8
vectorFn = llvm.lifetime.start.p0i8
vectorW = 0
maskPos = -1
resultSh = uni
paramShs: {
(0) i64 %0 -> i64 %0 : uni
(1) i8* %1 -> i8* %1 : uni
}
}
}
] }
SPMDVectorizer.cpp:299: note: INFO: correct postDomTree
SPMDVectorizer.cpp:347: note: INFO: correct postDomTree
std_function_lambda: /builds/joe/pacxx-docker/src/include/llvm/IR/Instructions.h:830: llvm::Type* llvm::checkGEPType(llvm::Type*): Assertion `Ty && "Invalid GetElementPtrInst indices for type!"' failed.
cuda/release (https://zivgitlab.uni-muenster.de/HPC2SE-Project/pacxx-samples/-/jobs/10933):
9/38 Test #31: std_function_lambda ..............***Exception: SegFault 10.00 sec
Executor.h:148: error: ERROR: CUDA (driver api) error: cuModuleLoadDataEx(&_mod, MC.c_str(), 6, lioptions, opt_values) failed! a PTX JIT compilation failed (218) CUDARuntime.cpp:110
Executor.h:149: error: ERROR: Module initialization failed!
cuda/debug (https://zivgitlab.uni-muenster.de/HPC2SE-Project/pacxx-samples/-/jobs/10932):
29/35 Test #31: std_function_lambda ..............***Exception: Other 42.52 sec
std_function_lambda: /builds/joe/pacxx-docker/src/lib/IR/Constants.cpp:1680: static llvm::Constant* llvm::ConstantExpr::getBitCast(llvm::Constant*, llvm::Type*, bool): Assertion `CastInst::castIsValid(Instruction::BitCast, C, DstTy) && "Invalid constantexpr bitcast!"' failed.
native/release: I guessing the pass here is due to the test not checking its result (heven't checked whether it does).