Memory-Access

HyCuda will generate a Memory class, which will be one of the base-classes of
HyCudaAlgorithm. Memory owns two structures, hostMem and devMem, which contain pointers to all memory on the host and device respectively. Through these pointers, all memory can be accessed. Also, an instance of devMem is copied to the device itself. A pointer to this struct of device-pointers, dev_devMem, can be passed to the kernels instead of having to pass all necessary pointers individually.



Joren Heit 2013-12-17