From 2b8b3bd42110b8b753a8d6423a25384c0fbb5306 Mon Sep 17 00:00:00 2001 From: Anna Brown Date: Mon, 23 Jan 2023 09:03:16 -0800 Subject: [PATCH] don't copy self sufficient slices when sources on gpu --- include/atrip/SliceUnion.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/atrip/SliceUnion.hpp b/include/atrip/SliceUnion.hpp index 6ecaf9a..06b9f92 100644 --- a/include/atrip/SliceUnion.hpp +++ b/include/atrip/SliceUnion.hpp @@ -200,7 +200,7 @@ template : Slice::Fetch ; if (blank.info.state == Slice::SelfSufficient) { -#if defined(HAVE_CUDA) +#if defined(HAVE_CUDA) && !defined(ATRIP_SOURCES_IN_GPU) const size_t _size = sizeof(F) * sliceSize; // TODO: this is code duplication with downstairs if (freePointers.size() == 0) { @@ -221,7 +221,6 @@ template (void*)SOURCES_DATA(sources[from.source]), sizeof(F) * sliceSize)); )) - #else blank.data = SOURCES_DATA(sources[from.source]); #endif