[SCIP] buffer and block memory
James Cussens
james.cussens at york.ac.uk
Mon Jun 25 09:28:48 CEST 2018
I would like more detail on when it is appropriate to use buffer versus
block memory in SCIP.
I have a function which looks like this:
/*STARTS*/
int* counts;
...
SCIP_CALL( SCIPallocClearBlockMemoryArray(scip, &counts, n) );
foo(counts, n, ...);
bar(counts, n,...);
SCIPfreeBlockMemoryArray(scip, &counts, n);
...
/*ENDS*/
So counts is allocated and freed in the same function, but it used in other
functions. So is it OK (and better) to have this as buffer memory?
James
--
James Cussens
Dept of Computer Science &
York Centre for Complex Systems Analysis
Room 326, The Hub, Deramore Lane Tel +44 (0)1904 325371
University of York Fax +44 (0)1904
500159
York YO10 5GE, UK http://www.cs.york.ac.uk/~jc
http://www.york.ac.uk/docs/disclaimer/email.htm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20180625/69f770ad/attachment.html>
More information about the Scip
mailing list