|
From: | Peshala Pahalawatta |
Subject: | Re: [Openexr-devel] [Half] HalfTest Failure |
Date: | Thu, 25 Apr 2013 08:21:15 -0700 |
It seems like the problem does not occur in the latest stable version (1.0.3). In 2.0.0, half.h includes a file called halfexports.h which is looking for a PLATFORM* definition, so I guess that comes from an older branch? Pesh From: Piotr Stanczyk [mailto:address@hidden Could you email me the toFloat tables .. thanks From: Peshala Pahalawatta address@hidden It’s an Intel Core i7 CPU running Windows 7 64bit but I’m compiling with Win32. Do you need more info? Pesh From: Piotr Stanczyk [mailto:address@hidden] hmm - what hardware are you running this on? From: address@hidden address@hidden on behalf of Peshala Pahalawatta address@hidden I have downloaded ILMBase_2.0.0 and compiled it on Visual Studio 2005. I get an error message when running HalfTest saying, HalfTest.exe has stopped working, after the following lines: 1>Running HalfTest unit tests... 1>testing type half: 1>size and alignment 1>sizeof (half) = 2 1>alignof (half) = 2 1>ok 1>basic arithmetic operations: 1>f1 = 1, f2 = 2, h1 = -27.1875, h2 = -19.1875 The problem seems to be in assert (h1 == 3) on Line 30 of testArithmetic.cpp where it does _toFloat[_h] with _h = 52940, and _toFloat[52940] is not actually available. I’m not completely sure how _toFloat is populated. The compiler has created a toFloat.h and eLut.h file in the Half directory, so the tables seem to be already available. Any advice on this would be much appreciated. Best regards, Pesh |
[Prev in Thread] | Current Thread | [Next in Thread] |