- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I am trying to compile a program that requires ~13 Gb of data in memory. We are using ifort professional v11, on a Sun workstation with 64Gb of ram. When trying to compile the program I get a series of messages similar to :
(.text+0x263b): relocation truncated to fit: R_X86_64_32S against `.bss'
Any suggestions on how to proceed?
Thanks,
Todd
(.text+0x263b): relocation truncated to fit: R_X86_64_32S against `.bss'
Any suggestions on how to proceed?
Thanks,
Todd
링크가 복사됨
3 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Quoting - tschaack
I am trying to compile a program that requires ~13 Gb of data in memory. We are using ifort professional v11, on a Sun workstation with 64Gb of ram. When trying to compile the program I get a series of messages similar to :
(.text+0x263b): relocation truncated to fit: R_X86_64_32S against `.bss'
Any suggestions on how to proceed?
Thanks,
Todd
(.text+0x263b): relocation truncated to fit: R_X86_64_32S against `.bss'
Any suggestions on how to proceed?
Thanks,
Todd
From man ifort:
-mcmodel= mem_model
Tells the compiler to use a specific memory model to gen-
erate code and store data.
Architectures: Intel 64 architecture
Default:
-mcmodel=small On systems using Intel 64 architec-
ture, the compiler restricts code and
data to the first 2GB of address space.
Instruction Pointer (IP)-relative
addressing can be used to access code
and data.
Description:
This option tells the compiler to use a specific memory
model to generate code and store data. It can affect code
size and performance. If your program has COMMON blocks
and local data with a total size smaller than 2GB,
-mcmodel=small is sufficient. COMMONs larger than 2GB
require-mcmodel=medium or -mcmodel=large. Allocation of
memory larger than 2GB can be done with any setting of
-mcmodel.
IP-relative addressing requires only 32 bits, whereas
absolute addressing requires 64-bits. IP-relative address-
ing is somewhat faster. So, the small memory model has the
least impact on performance.
NOTE: When you specify -mcmodel=medium or -mcmodel=large,
you must also specify compiler option -shared-intel to
ensure that the correct dynamic versions of the Intel
run-time libraries are used.