3 ms·
Locales do control where the data is stored. For example: var HostArr: [1..10] int; // allocated on the host memory on here.gpus[0] { // now we are
by e-kayrakli 3y ago
Locales do control where the data is stored. For example:
var HostArr: [1..10] int; // allocated on the host memory
on here.gpus[0] {
// now we are on a GPU sublocale...
var DevArr:[1..10] int; // allocated on the device memory
...
}
In the near term, we are planning to publish our 2nd GPU blog post where we will discuss how to move data between device and host.