На данный момент у меня есть следующее:
Код: Выделить всё
main.cppКод: Выделить всё
host.cppКод: Выделить всё
host.hКод: Выделить всё
device.cuКод: Выделить всё
device.cuhКод: Выделить всё
CMakeLists.txt
Код: Выделить всё
// main.cpp
#include "host.h"
#include "device.cuh"
int main()
{
a();
b();
return 0;
}
Код: Выделить всё
// host.cpp
#include
#include "host.h"
int b() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79809350/problem-compiling-a-skeleton-cuda-c-project-using-cmake[/url]
Мобильная версия