Multi-cpu deployment

32 views
Skip to first unread message

Jan Dentler

unread,
May 4, 2021, 3:36:11 AM5/4/21
to F´ Community Group
Hi!

I am considering using F' on a multi-core platform. 
Our target is to have a set of passive components running on each CPU with a dedicated update interval per CPU. Unfortunately the user guide documentation is a bit sparse in this respect. Does anyone of you know applications/examples/tutorials/information for multi-core deployment and design patterns (rate group design/threading/CPU affinity)?

Thank you!

Timothy Canham

unread,
May 4, 2021, 11:20:25 AM5/4/21
to F´ Community Group
Jan:

You can use the same pattern as the Ref example. Create an ActiveRateGroup for each core, and attach the passive components to the RateGroupMemberOut ports. The RateGroupDriver can be connected to the input ports of the ActiveRateGroup and drive them at whatever rate you would like. The ActiveRateGroup instance can be assigned to a core via the optional cpuAffinity argument in the component start() call.

Reply all
Reply to author
Forward
0 new messages