![]() ![]() |
Nov 6 2009, 09:30 AM
Post
#1
|
|
![]() ![]() Group: Members Posts: 22 Joined: 19-March 07 From: China Member No.: 45,835 Org.: EmbeddedCore |
In short, I successfully built all the CUDA 3.0 SDK examples on both platforms.
In details, On Ubuntu 9.04 With gcc 4.3.3, verbose=1 make is going to end no any problem. On FC11 With gcc 4.4.1 and nvcc compiler flag -fno-inline Conclusion: CUDA SDK can be built successfully with MINIMUM and REASONABLE changes to projects, methodology in which may bring the SDK less dependency to building tools like gcc 4.4.1 issue. Nvidia CUDA team may shape an maximum independent application SDK to insulate with building tools evolution. I do not think that 'better' gcc tool chain ever be an obstacle. Maybe just as I never met it, however, Next: Sorry, Ubuntu 9.10 is stuck. I upgrade my 9.04 to be there for further test. This post has been edited by highman: Nov 10 2009, 08:52 AM |
|
|
|
Nov 12 2009, 05:28 AM
Post
#2
|
|
![]() ![]() Group: Members Posts: 22 Joined: 19-March 07 From: China Member No.: 45,835 Org.: EmbeddedCore |
In short, all the CUDA 3.0 SDK examples were built on Ubuntu 9.10 with gcc 4.4.1-4ubuntu8
In details, first follow the same modifications on FC11. Then memcpy and memset declarations in /usr/local/cuda/bin/../include/common_functions.h needed to be commented at this moment. Acknowledge to nvta, workaround for gcc 4.4 , as memcpy and memset are always-inline attribute Conclusion: All done, but need to change a CUDA system header file. Actually, maybe the simplest way, just change override nvcc options O2 with O0, which brings minor difference only to host code in .cu file This post has been edited by highman: Nov 12 2009, 08:21 AM |
|
|
|
Nov 12 2009, 10:21 AM
Post
#3
|
|
![]() Group: Members Posts: 8 Joined: 6-November 09 From: Bremen, Germany Member No.: 244,381 Club SLI Member: No |
that means CUDA 3.0beta SDK is working with gcc 4.4 (=ubuntu 9.10) ??
is there a download for non registered developers ?? Or can everybody become a registered developer? |
|
|
|
Nov 12 2009, 01:43 PM
Post
#4
|
|
![]() ![]() Group: Members Posts: 22 Joined: 19-March 07 From: China Member No.: 45,835 Org.: EmbeddedCore |
Yes and No:
No, same as 2.3, building can not be completed with gcc 4.4 by default configuration. Point is that nvcc -O2 brings those conflicts...... Yes, I built them with gcc 4.4 on Ubuntu 9.10, nvcc -O0 (g++ still uses -O2)...or disable those weak inline decalartion That's right. You need to apply a registered account. I did it very early and passed a check. that means CUDA 3.0beta SDK is working with gcc 4.4 (=ubuntu 9.10) ?? is there a download for non registered developers ?? Or can everybody become a registered developer? |
|
|
|
![]() ![]() |
| Copyright 2008 NVIDIA Corporation. Terms of Use | Legal Info | Privacy Policy | Time is now: 24th November 2009 - 12:42 AM |