gcc 4.1 vs gcc 4.3
5 posts
• Page 1 of 1
gcc 4.1 vs gcc 4.3
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.
- bucknerj
- Posts: 5
- Joined: Wed Aug 19, 2009 3:03 am
Re:gcc 4.1 vs gcc 4.3
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?
- What was the error you encountered?
- Are you using a 32- or 64-bit system?
- Did you attempt to compile with gcc 4.2?
- dan
- Administrator
- Posts: 61
- Joined: Thu Jul 23, 2009 2:29 pm
Re: gcc 4.1 vs gcc 4.3
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
******
***********
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
******
- mat38
- Posts: 16
- Joined: Wed Aug 19, 2009 6:45 am
- Location: Grenoble, France
Re: gcc 4.1 vs gcc 4.3
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.
Note that we've fixed this issue internally and that a fix will be issued in a future beta.
- dan
- Administrator
- Posts: 61
- Joined: Thu Jul 23, 2009 2:29 pm
Re: gcc 4.1 vs gcc 4.3
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
Best Regards
- mat38
- Posts: 16
- Joined: Wed Aug 19, 2009 6:45 am
- Location: Grenoble, France
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest