- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi,
I am tring to use the /Qdyncom (dynamic common allocation option) but I am getting the following error:
forrtl: Allocate Dynamic Common Error - Allocation Failure
The allocation of dynamic common MY_COMMON of size 288000000 in procedure MY_ROUTINE failed
forrtl: severe (585): array not allocated
The common MY_COMMON is composed by a unique big matrix.
What are the limitations of this option?
If I can allocate this matrix using ALLOCATE, why this option fails?
Thanks in advance,
Luiz
- Marcas:
- Intel® Fortran Compiler
Link copiado
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Is this a 32-bit or 64-bit application?
Jim Dempsey
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
It is a 32-bit application.
However, the matrix I am tring to allocate is 288,000,000 (274 Mb).
Would this be a problem for 32-bits applications?
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
>>However, the matrix I am tring to allocate is 288,000,000 (274 Mb). Would this be a problem for 32-bits applications?
Not if your heap at that time has a node of at least that size (with header).
Set this array dimensions to small as possible, set a break point (or PAUSE) at start of program (should reach here after all dynamic allocations. Using Task manager, Processes tab, what is the Memory (Private Working Set) for your process? Then click on Task Manager Performance tab, then Resource Monitor button, then Memory tab, what are the values for your process?
Jim Dempsey
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Also, does this array have an array constructor (initializing expression) associated with it?
Jim Dempsey
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Dynamic common is a feature best avoided, since allocatable arrays provide similar functionality, but it should work if used correctly. Are you supplying your own allocation routine or using the default? Can you show us a small example that demonstrates the problem? I often find that trying to reduce the problem to a small example reveals the cause.

- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora