|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
MTL: Test fails in MTL4 alpha 1Hi,
One of the tests fails on my mac. The problem seems to be related to the function template <typename Matrix> void raw_copy_test(Matrix& matrix, col_major) in compressed2D_inserter.cpp. The index array created in the problematic function looks strange. I get the output attached below. I am using: boost 1.34.1 i686-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5363) The other tests works fine. Cheers, Jari # scons -D . check=1 with-blas=1 scons: Entering directory `/projects/osd/mtl4' scons: Reading SConscript files ... -DMTL_ASSERT_FOR_THROW scons: done reading SConscript files. scons: Building targets ... g++ -o libs/numeric/mtl/test/compressed2D_inserter.o -c -Wno-long-double -g -DMTL_ASSERT_FOR_THROW -DNDEBUG -Wno-long-double -I. libs/numeric/mtl/test/compressed2D_inserter.cpp g++ -o libs/numeric/mtl/test/compressed2D_inserter libs/numeric/mtl/test/compressed2D_inserter.o /projects/osd/mtl4/libs/numeric/mtl/test/compressed2D_inserter [ 0 1 0 0 2 0] [ 0 0 3 0 0 0] [ 4 5 6 7 0 0] [ 0 0 0 8 0 9] [ 0 10 0 11 12 0] [ 0 13 0 14 15 16] [ 0 0 0 0 0 0] [ 0 0 17 0 0 18] [ 0 1 0 31 2 0] [ 0 0 3 0 0 0] [ 4 5 6 7 0 0] [ 0 0 0 33 0 9] [ 0 10 0 11 37 0] [ 0 13 0 14 15 16] [ 35 0 0 0 0 0] [ 0 0 17 0 0 18] [ 0 1 27 31 2 0] [ 0 0 3 0 0 0] [ 4 5 27 7 22 26] [ 0 28 0 33 0 9] [ 0 10 54 11 37 0] [ 0 13 0 14 15 16] [ 35 23 0 0 0 0] [ 0 0 43 0 0 18] matrix[2][2] = 28 [ 0 0 0 0 0 0] [ 0 0 1 0 0 2] [ 0 0 0 3 0 0] [ 0 4 5 6 7 0] [ 0 0 0 0 8 0] [ 0 0 10 0 11 12] [ 0 0 13 0 14 15] [ 0 0 0 0 0 0] [ 0 0 0 0 0 0] [ 0 0 1 0 31 2] [ 0 0 0 3 0 0] [ 0 4 5 6 7 0] [ 0 0 0 0 33 0] [ 0 0 10 0 11 37] [ 0 0 13 0 14 15] [ 0 35 0 0 0 0] [ 0 0 0 0 0 0] [ 0 0 1 27 31 2] [ 0 0 0 3 0 0] [ 0 4 5 27 7 22] [ 0 0 28 0 33 0] [ 0 0 10 54 11 37] [ 0 0 13 0 14 15] [ 0 35 23 0 0 0] matrix[2][2] = 28 [ 0 1 0 0 2 0] [ 0 0 3 0 0 0] [ 4 5 6 7 0 0] [ 0 0 0 8 0 0] [ 0 10 0 0 12 0] [ 0 13 0 0 15 16] [ 0 0 0 0 0 0] [ 0 0 17 0 0 18] [ 0 1 0 31 2 0] [ 0 0 3 0 0 0] [ 4 5 6 7 0 0] [ 0 0 0 33 0 0] [ 0 10 0 0 37 0] [ 0 13 0 0 15 16] [ 35 0 0 0 0 0] [ 0 0 17 0 0 18] [ 0 1 27 31 2 0] [ 0 0 3 0 0 0] [ 4 5 27 7 22 26] [ 0 28 0 33 0 0] [ 0 10 54 0 37 0] [ 0 13 0 0 15 16] [ 35 23 0 0 0 0] [ 0 0 43 0 0 18] matrix[2][2] = 28 /usr/local/include/boost/test/minimal.hpp(122): exception "memory access violation" caught in function: 'int main(int, char**)' **** Testing aborted. **** 1 error detected [scons: *** [libs/numeric/mtl/test/compressed2D_inserter] Error 201 scons: building terminated because of errors. _______________________________________________ This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/ |
|
|
Re: MTL: Test fails in MTL4 alpha 1Hi Jari,
You are right, my hand-written CCS matrix was wrong. Which shows how useful the inserter is. ;-) The version on the web page is fixed. I also threw out the test for Fortran-indexed matrices since I stopped supporting them some day. Thank you for helping us to make the lib bug-free. Cheers, Peter Jari Häkkinen schrieb: > Hi, > > One of the tests fails on my mac. The problem seems to be related to the > function > > template <typename Matrix> > void raw_copy_test(Matrix& matrix, col_major) > > in compressed2D_inserter.cpp. The index array created in the problematic > function looks strange. I get the output attached below. > > I am using: > > boost 1.34.1 > i686-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5363) > > > The other tests works fine. > > > Cheers, > > Jari > > > > # scons -D . check=1 with-blas=1 > > scons: Entering directory `/projects/osd/mtl4' > scons: Reading SConscript files ... > -DMTL_ASSERT_FOR_THROW > scons: done reading SConscript files. > scons: Building targets ... > g++ -o libs/numeric/mtl/test/compressed2D_inserter.o -c -Wno-long-double > -g -DMTL_ASSERT_FOR_THROW -DNDEBUG -Wno-long-double -I. > libs/numeric/mtl/test/compressed2D_inserter.cpp > g++ -o libs/numeric/mtl/test/compressed2D_inserter > libs/numeric/mtl/test/compressed2D_inserter.o > /projects/osd/mtl4/libs/numeric/mtl/test/compressed2D_inserter > [ 0 1 0 0 2 0] > [ 0 0 3 0 0 0] > [ 4 5 6 7 0 0] > [ 0 0 0 8 0 9] > [ 0 10 0 11 12 0] > [ 0 13 0 14 15 16] > [ 0 0 0 0 0 0] > [ 0 0 17 0 0 18] > > > [ 0 1 0 31 2 0] > [ 0 0 3 0 0 0] > [ 4 5 6 7 0 0] > [ 0 0 0 33 0 9] > [ 0 10 0 11 37 0] > [ 0 13 0 14 15 16] > [ 35 0 0 0 0 0] > [ 0 0 17 0 0 18] > > > [ 0 1 27 31 2 0] > [ 0 0 3 0 0 0] > [ 4 5 27 7 22 26] > [ 0 28 0 33 0 9] > [ 0 10 54 11 37 0] > [ 0 13 0 14 15 16] > [ 35 23 0 0 0 0] > [ 0 0 43 0 0 18] > > > > matrix[2][2] = 28 > [ 0 0 0 0 0 0] > [ 0 0 1 0 0 2] > [ 0 0 0 3 0 0] > [ 0 4 5 6 7 0] > [ 0 0 0 0 8 0] > [ 0 0 10 0 11 12] > [ 0 0 13 0 14 15] > [ 0 0 0 0 0 0] > > > [ 0 0 0 0 0 0] > [ 0 0 1 0 31 2] > [ 0 0 0 3 0 0] > [ 0 4 5 6 7 0] > [ 0 0 0 0 33 0] > [ 0 0 10 0 11 37] > [ 0 0 13 0 14 15] > [ 0 35 0 0 0 0] > > > [ 0 0 0 0 0 0] > [ 0 0 1 27 31 2] > [ 0 0 0 3 0 0] > [ 0 4 5 27 7 22] > [ 0 0 28 0 33 0] > [ 0 0 10 54 11 37] > [ 0 0 13 0 14 15] > [ 0 35 23 0 0 0] > > > > matrix[2][2] = 28 > [ 0 1 0 0 2 0] > [ 0 0 3 0 0 0] > [ 4 5 6 7 0 0] > [ 0 0 0 8 0 0] > [ 0 10 0 0 12 0] > [ 0 13 0 0 15 16] > [ 0 0 0 0 0 0] > [ 0 0 17 0 0 18] > > > [ 0 1 0 31 2 0] > [ 0 0 3 0 0 0] > [ 4 5 6 7 0 0] > [ 0 0 0 33 0 0] > [ 0 10 0 0 37 0] > [ 0 13 0 0 15 16] > [ 35 0 0 0 0 0] > [ 0 0 17 0 0 18] > > > [ 0 1 27 31 2 0] > [ 0 0 3 0 0 0] > [ 4 5 27 7 22 26] > [ 0 28 0 33 0 0] > [ 0 10 54 0 37 0] > [ 0 13 0 0 15 16] > [ 35 23 0 0 0 0] > [ 0 0 43 0 0 18] > > > > matrix[2][2] = 28 > /usr/local/include/boost/test/minimal.hpp(122): exception "memory access > violation" caught in function: 'int main(int, char**)' > > **** Testing aborted. > **** 1 error detected > [scons: *** [libs/numeric/mtl/test/compressed2D_inserter] Error 201 > scons: building terminated because of errors. > > _______________________________________________ > This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/ > > -- Dr. rer. nat. Peter Gottschling Dresdner Grundwasserforschungszentrum e.V. (DGFZ) Meraner Str. 10 01217 Dresden Germany ..................................................................... phone: +49 (0) 351 / 4050651 fax: +49 (0) 351 / 4050679 web: http://www.dgfz.de ..................................................................... VR 210 Ust.-Id DE140134319 GF: Dr. F. Börner ..................................................................... Veranstaltungshinweise: Weiterbildung im DGFZ e.V. 14.-16.11.2007 Modellierung mit PCGEOFIM Programm und Termine: http://www.dgfz.de/aktuell 06./07.11.2007 XVIII. Sächsisches Altlastenkolloquium und regionaler Workshop des BMBF-Förderschwerpunktes KORA "Natürliche Schadstoffminderungsprozesse bei der Altlastenbearbeitung" Programm und Anmeldung: http://www.dgfz.de/index_altlastenkolloquium _______________________________________________ This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/ |
| Free embeddable forum powered by Nabble | Forum Help |