mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-05 10:59:47 -05:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user