Reputation: 105
CUDA 5 was released recently and I have been using CUDA 4 until now. So I was wondering whether the code I wrote in CUDA 4 will still run, if I install CUDA 5?
Is it completely compatible or partially? Will open source projects like gpuocelot, that require CUDA 4, work with CUDA 5 too?
Thanks
Upvotes: 2
Views: 661
Reputation: 152133
There is not 100% compatibility between CUDA 4 and CUDA 5.
To choose just one example, in CUDA 5, it is no longer permissible to use a character string to indicate a device symbol, which was possible with certain API functions in CUDA 4. Instead, the symbol should be used directly.
It's also been pointed out that the structure of the sample codes has changed significantly, which may impact your code if you are using elements of the sample codes. However this isn't a true compatibility issue, in my opinion.
It's likely that the changes required to move a cuda code from CUDA 4 to CUDA 5 will be minor, if any.
Emulators often depend on unpublished characteristics of the CUDA runtime, and frequently only work with specific CUDA versions. Check the emulator of your choice for any statements made about required runtime.
Upvotes: 2