Lombiq / Hastlayer-SDK

Turning .NET software into FPGA hardware for faster execution and lower power usage.

Home Page:https://hastlayer.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support automatic size detection of array passed to Task (HAST-322)

Piedone opened this issue · comments

Passing arrays to Tasks like below currently requires one manually specify the array size (see here):

public void PassArrayToTask()
{
var array = new int[TaskArrayLength];
var tasks = new Task<int>[15];
tasks[0] = Task.Factory.StartNew(
arrayObject =>
{
var localArray = (int[])arrayObject;
localArray[0] = 123;
return localArray[0];
},
array);
}

This should rather be handled automatically.

Then remove the manual array size config in StaticTestInputAssembliesVerificationTests.

Jira issue