[MITgcm-support] Error reading dx file with pathscale

Martin Losch Martin.Losch at awi.de
Tue Oct 21 14:29:35 EDT 2008


David,

good guess, I forgot to mention the wordlength. Sometimes that's a  
problem, too, but you'd have to consult the man-pages or  
documentation for that.

Did you try the -D_BYTESWAPIO option, just to rule out this  
byteswapping issue?

Does the model read other fields correctly (try by specifying a delX/ 
delY instead of files for this test)?

Martin

On 21 Oct 2008, at 20:24, David Hebert wrote:

> Hi Martin,
>
> Thanks for responding. Pathscale has both a -convert big_endian and  
> a -byteswapio flag which do the same thing. I have tried both  
> options with the same result.
>
> I note that WORDLENGTH=4 for most all compilers. I wonder if there  
> would be a reason where I would need to change this for pathscale  
> on 64bit architecture?
>
>
>
> David
>
>
> Martin Losch wrote:
>>
>> Hi David,
>> just to make sure: you need either set a CPP flag like this:
>> DEFINES='-D_BYTESWAPIO'
>> in the build options file or (which is probably faster) specify  
>> the appropiate compiler flag.
>> "-byteswapio" is the flag for the PGI compiler, I don't know what  
>> the Pathscale compiler does, but in the tools/build_options/ 
>> linux_amd64_pathf90 I found this:
>> FFLAGS='-convert big_endian'
>>
>> Could that be the problem?
>>
>> Martin
>> On 21 Oct 2008, at 19:37, David Hebert wrote:
>>
>>> Hello all,
>>>
>>>
>>> I am working on a Cray XT4 system. I was able to compile and run  
>>> with PGI compilers. I am not attempting to see if Pathscale  
>>> compilers will make code run faster. In data file I specify a  
>>> delXfile and delYfile. It seems that by switching compilers now  
>>> causes the code to read these files incorrectly, as I am now  
>>> getting values like 9.0e160. This seems to suggest that byte  
>>> swapping is not occurring, but I have checked many times and I do  
>>> have -byteswapio flag set at compile time. Any ideas what might  
>>> be causing this behavior?
>>>
>>> Thanks,
>>>
>>> David
>>>
>>>
>>> _______________________________________________
>>> MITgcm-support mailing list
>>> MITgcm-support at mitgcm.org
>>> http://mitgcm.org/mailman/listinfo/mitgcm-support
>>
>> _______________________________________________
>> MITgcm-support mailing list
>> MITgcm-support at mitgcm.org
>> http://mitgcm.org/mailman/listinfo/mitgcm-support
>
> -- 
> David A. Hebert
> NRC Postdoc
> Naval Research Lab
> Stennis Space Center, MS 39525
> david.hebert.ctr at nrlssc.navy.mil
> Phone: (228) 688-5846
> Fax:     (228) 588-5997
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list