Menu

#104 Using static fields of .NET objects on device

open
nobody
5
2012-10-05
2012-10-05
No

Currently, only instance fields of objects passed into the kernel, and all objects referenced by them are synced.

This will add the syncing/invalidation ability to static fields of objects, and will enable referencing them in kernels and in instance/static methods of objects.

Note that instance methods on device side will only be able to use static fields of its own types and of its base types; they won't be able to use static fields from other types. Kernels will be able to use static fields from any type, as before, by causing the fields to be passed as arguments.

Using static fields in device-side instance/static methods from different types will require more advanced synchronization for per-class data.

Discussion