Closed AlexandreEichenberger closed 2 months ago
Jenkins Linux s390x Build #15665 [push] Added support to generat... started at 09:54
Jenkins Linux amd64 Build #15662 [push] Added support to generat... started at 08:54
Jenkins Linux ppc64le Build #14692 [push] Added support to generat... started at 10:05
Jenkins Linux amd64 Build #15662 [push] Added support to generat... passed after 1 hr 6 min
Jenkins Linux s390x Build #15665 [push] Added support to generat... passed after 1 hr 39 min
Jenkins Linux ppc64le Build #14692 [push] Added support to generat... passed after 2 hr 3 min
Added support to generate OpenMP parallel construct with
num_threads
andproc_bind
clause.First I added two optional parameters to the
krnl.parallel
operation:which allows the user to associate parallel loops with an optional
num_threads
orproc_bind
to thecreate.krnl.parallel
builder.When lowering to affine (or if generating affine or scf parallel operation), we then insert inside the loop a
KrnlParallelClauseOp
, which takes one mandatory value (the loop index), to identify the parallel loop targeted by the clause, and the optionalnum_threads
(a value) and theproc_bind
(a string).After the parallel constructs are lowered to OpenMP construct, a simple pass (
createProcessKrnlParallelClausePass
) identify theKrnlParallelClauseOp
, locate its enclosingomp.parallel
construct, and migrate the clauses to the OpenMP constructs.Added 2 mlir lit test files