Reply to comment

У меня Win7 32 битная. Поставил вчера vs2008. Создал чистый консольный win32 проект (пустой). Добавил файл main.cpp. Добавил файл kernel.cu. При этом появилось окошко - создать ли новое правило, сказал нет. Правой кнопкой на проекте, пункт "custom build rules". Там выбрал CUDA Build Rule v2.3 (предварительно скопировав файл cuda.rules из папки с sdk cuda в папку где vs2008 установлена, где другие .rules файлы лежат).
Далее - ввел ключи как в посте про который я тут писал, а так же (забыл там указать) в пункт c/c++ > general > additional include directories добавил $(CUDA_INC_PATH).
После этого программа компилируется и собирается, правда у меня не запустилась - несоответствие версий cuda и cudart, нужно toolkit обновить вроде (не работаю на этой машине).

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <i> <table> <td> <tr> <th>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].
  • Images can be added to this post.

More information about formatting options

Copyright © 2008-2011 Alex Tutubalin