cornell-zhang / heterocl

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing
https://cornell-zhang.github.io/heterocl/
Apache License 2.0
322 stars 92 forks source link

hcl.Struct with array fields? #412

Open jcasas00 opened 3 years ago

jcasas00 commented 3 years ago

Is there a notion of array fields in an hcl.Struct? For example, the equivalent to:

struct { uint16 a; uint16 b[32]; ... }

I can imagine writing a separate class to handle the aggregation myself but it would be nice if this was supported directly with hcl.Struct instead, if possible.

seanlatias commented 3 years ago

Currently we don't have this support. Basically, we don't have tensor type. We can add that in the future.

seanlatias commented 3 years ago

Mistakenly closed the issue, Reopen it.