Closed bkloppenborg closed 11 years ago
There appear to be a few possible options.
The third option is clearly the best choice, but it will require significant modification to the underlying data storage containers. For now, we'll just suggest option 1 as the best solution.
CCOIFITS has methods for bootstrapping. This feature is no longer needed.
For bootstrapping data must be somehow randomized and placed into the GPU's memory.
At present this library reads OIFITS data from the file and then stores it in RAM. When
is called the data in RAM are copied to the GPU, allocating memory as required. When ~COILibData() is called, all memory on the GPU and CPU are deallocated.
At present there is no method to bootstrap data without creating a new fake OIFITS data file and copying it to the GPU. It would be nice if each COILibData object could bootstrap itself and keep track of all allocated memory.