5

Was just wondering if anyone has any experience working with CUDA and XCode? I'm having a nightmare setting it all up...

Dawson

Ljdawson
  • 12,091
  • 11
  • 45
  • 60
  • 2
    I have no experience with CUDA, but if you're targeting the Mac have you looked at OpenCL? http://developer.apple.com/mac/library/documentation/Performance/Conceptual/OpenCL_MacProgGuide/Introduction/Introduction.html – Rob Keniger Oct 19 '09 at 10:59

1 Answers1

1

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).

I suggest you to also use CMAKE in combination with FindCUDA.cmake for generating the xcode project file. FindCUDA.cmake is here

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.

Sebastian
  • 8,046
  • 2
  • 34
  • 58