7:45:27 AM PDT - Thu, Mar 30th 2017 |
|
Yes, in the memory allocation global refers to the memory available to global arrays. So an allocation such as
memory stack 500 mb heap 100 mb global 1300 mb
would allocate 1300 MB to global arrays. As far as the dependence on machine architecture, you do not need to worry about it. If you are on a shared memory machine, then you will get what you specify. If you are on a distributed memory machine, the code will essentially ignore the partitioning between memory segments (the total memory allocated is all that is really important in this case) and global arrays can use as much memory as is not in use by stack/heap.
|