I've got the template Code Composer OpenMP projects working (OMP hello world, and OMP matrix) using core 0 as the primary core. However, for my purposes I would like to use just 3 cores (1,2,3) with core 1 as the primary core. I can see that OpenMP.setNumProcessors(); controls the number of cores. I also see that the .cfg file creates a shared memory section using this command:
SharedRegion.setEntryMeta( HeapOMP.sharedRegionId,
{ base: 0x90000000,
len: HeapOMP.sharedHeapSize,
ownerProcId: 0,
cacheEnable: true,
createHeap: true,
isValid: true,
name: "heapomp",
}
);
I tried changing ownerProcId to 1, but this doesn't seem to have the desired effect. Specifically, when I load cores 1, 2 and 3, core 3 exits immediately. Cores 1 and 2 stall, presumably waiting for core 0.