Commit aa2fb6cb authored by Samuel Kemmler's avatar Samuel Kemmler
Browse files

Use NUMA-aware zero-initialization for matrix-fields

parent 4c96a571
......@@ -52,6 +52,9 @@ case class IR_InitFieldsWithZero() extends IR_FuturePlainFunction {
loopOverDims.parallelization.potentiallyParallel = true
loopOverDims.polyOptLevel = 1
// parallelize only field dimensions (< Knowledge.dimensionality) and not matrix dimensions (important for the NUMA-aware initialization of matrix-fields)
loopOverDims.parDims.retain(p => p < Knowledge.dimensionality)
val wrapped = IR_LoopOverFragments(
IR_IfCondition(IR_IV_IsValidForDomain(field.domain.index), loopOverDims),
IR_ParallelizationInfo(potentiallyParallel = true))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment