Page 1 of 1

gcc 4.1 vs gcc 4.3

PostPosted: Wed Aug 19, 2009 11:37 am
by bucknerj
I just have a little suggestion for the documentation. You might want to include a recommendation for compiler versions in the documentation. I had a problem linking to the cula libraries with gcc 4.1 but switching to 4.3 cleared it up. I'm using CentOS 5.3 whose default compiler is 4.1, by the way.

Re:gcc 4.1 vs gcc 4.3

PostPosted: Wed Aug 19, 2009 1:42 pm
by dan
Thanks for the feedback. So that we can investigate the error further, can you answer the following questions?

- What was the error you encountered?
- Are you using a 32- or 64-bit system?
- Did you attempt to compile with gcc 4.2?

Re: gcc 4.1 vs gcc 4.3

PostPosted: Fri Aug 21, 2009 6:36 am
by mat38
what kind of errors did you get ? I think that I have a problem that may be caused by an unappropriate version of gcc.

***********

gcc -o geqrf geqrf.c -DNDEBUG -O3 -I/opt/cula/include -L/opt/cula/lib64 -lcula -lcublas -lcudart -lstdc++
/opt/cula/lib64/libcula.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
/opt/cula/lib64/libcula.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<double>(double)'
collect2: ld returned 1 exit status
make: *** [all] Error 1

******

Re: gcc 4.1 vs gcc 4.3

PostPosted: Fri Aug 21, 2009 9:33 am
by dan
This problem arises due to differences in the stdc++ runtime between different versions of gcc. Can you try compiling with a newer version of gcc as bucknerj did to see if this gets around the problem?

Note that we've fixed this issue internally and that a fix will be issued in a future beta.

Re: gcc 4.1 vs gcc 4.3

PostPosted: Sun Aug 23, 2009 11:46 pm
by mat38
The problem is that I am not allowed to make such changes on the cluster I use. Moreover, compiling a new version of gcc is far from obvious ! I hope this issue would be fixed very soon so that I can try CULA.

Best Regards