From ec31f3f897169378626c33411935b72dd4550630 Mon Sep 17 00:00:00 2001 From: Martin Opat Date: Thu, 9 Jan 2025 12:00:14 +0100 Subject: [PATCH] Nevermind, main is not a host function so the new normalize function does not work there --- src/main.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cu b/src/main.cu index 41848b7..968be31 100644 --- a/src/main.cu +++ b/src/main.cu @@ -75,7 +75,7 @@ int main() { std::cout << "minVal: " << minVal << " maxVal: " << maxVal << std::endl; for (int i = 0; i < VOLUME_WIDTH * VOLUME_HEIGHT * VOLUME_DEPTH; i++) { - hostVolume[i] = normalize(hostVolume[i], minVal, maxVal); + hostVolume[i] = (hostVolume[i] - minVal) / (maxVal - minVal); } // Allocate + copy data to GPU