Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode and CUDA integration

Tags:

xcode

macos

cuda

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

Dawson

like image 863
Ljdawson Avatar asked Nov 14 '22 14:11

Ljdawson


1 Answers

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.

like image 193
Sebastian Dressler Avatar answered Dec 17 '22 14:12

Sebastian Dressler