WIP: CUDA build setup with CMake

The current CUDA build setup fails due to invalid flags in the nvcc command, leading to the error:

nvcc fatal: A single input file is required for a non-link phase when an output file is specified

The problematic flags are /MP and /bigobj, which cause nvcc to misinterpret the command structure. Removing these flags allows the compilation to succeed.

Further investigation is needed to determine how they can be removed form the CMake build system.
This commit is contained in:
Emil Wallberg
2025-02-20 15:08:04 +01:00
parent a10e77f255
commit 09397189c6
7 changed files with 123 additions and 10 deletions
@@ -3,6 +3,8 @@
#include <openspace/engine/globals.h>
#include <openspace/engine/windowdelegate.h>
#include <openspace/rendering/framebufferrenderer.h>
#include <openspace/navigation/navigationhandler.h>
#include <openspace/rendering/renderengine.h>
#include <ghoul/opengl/framebufferobject.h>
#include <ghoul/opengl/openglstatecache.h>
@@ -12,6 +14,8 @@
#include <ghoul/filesystem/filesystem.h>
#include <filesystem>
#include <modules/blackhole/cuda/blackhole_cuda.h>
namespace {
constexpr std::string_view _loggerCat = "BlackHoleModule";
constexpr std::string_view ProgramName = "BlackHoleProgram";
@@ -32,6 +36,8 @@ namespace openspace {
}
void RenderableBlackHole::initialize() {
_viewport = ViewPort(global::navigationHandler->camera());
cuda_test();
}
void RenderableBlackHole::initializeGL() {
@@ -123,6 +129,8 @@ namespace openspace {
else {
LWARNING("UniformCache is missing 'enviromentTexture'");
}
//invProjection, invView
}
void RenderableBlackHole::drawQuad() {