XCode和CUDA集成 [英] XCode and CUDA integration
问题描述
只是想知道有没有任何使用CUDA和XCode的任何经验?我有一个噩梦设置它所有...
Was just wondering if anyone has any experience working with CUDA and XCode? I'm having a nightmare setting it all up...
Dawson
推荐答案
我正在使用XCode,CMAKE& CUDA。没有问题到目前为止!像一个魅力,尽管你需要确保,XCode使用gcc 4.0而不是4.2(10.6的情况下)。
I'm working with XCode, CMAKE & CUDA. No problems so far! Works like a charm, though you'll need to make sure, that XCode is using the gcc 4.0 instead of 4.2 (in case of 10.6).
我建议你还可以使用CMAKE与FindCUDA.cmake结合生成xcode项目文件。 FindCUDA.cmake在这里
I suggest you to also use CMAKE in combination with FindCUDA.cmake for generating the xcode project file. FindCUDA.cmake is here
还有一个XCode的插件,使它识别.cu文件,发现在消息#29中的这里。此外,此处提供了一个很好的教程,提及了插件。
There is also a plugin for XCode, making it recognize .cu files, found here in message #29. Also a good "tutorial" is given here, mentioning the plugin.
这篇关于XCode和CUDA集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!