Using shared array (to represent matrix) in Hastlayer #113
Replies: 1 comment 1 reply
-
No problem, let me include an example: I modified the ParallelAlgorithm sample (https://github.com/Lombiq/Hastlayer-SDK/blob/dev/src/Samples/Hast.Samples.SampleAssembly/ParallelAlgorithm.cs) to give you an idea, see here: a4519e7. I actually also discovered and fixed a bug in Hastlayer (#110) for this; please update to the v2.1.1-alpha.0.hast-321 prerelease package to use the bug fix.
|
Beta Was this translation helpful? Give feedback.
-
Good morning,
I have a question about usage of shared array (to represent a matrix) with Hastlayer to write a parallel algorithm.
Right now, I am trying to write a simple, parallel implementation of the Floyd-Warshall algorithm (you can find the source code here) using Hastlayer. I have read the documentation and browsed through samples and as I understood the
SimpleMemory
class is a way to pass data to the FPGA unit. However, I still can't understand how to use it for this purpose, especially taking in account an explicit statement in documentation aboutSimpleMemory
not being thread safe.I am sure I am missing something conceptual here, so any help will be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions