From d17f6102ab60863b3dead22d619a313aa277e514 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 16 Nov 2021 16:35:20 +0100 Subject: Add feature flag 'unpadded_GPULink' This will let other toolboxes detect if ASTRA (properly) supports unpadded GPULink objects. See 6baf90217683b7bac2e87dd9fef944fab6a8a950. --- include/astra/Features.h | 4 ++++ src/Features.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/include/astra/Features.h b/include/astra/Features.h index fe7348e..aca51c4 100644 --- a/include/astra/Features.h +++ b/include/astra/Features.h @@ -55,6 +55,10 @@ fan_cone_BP_density_weighting_by_default weighting by default to more closely approximate the true mathematical adjoint. The DensityWeighting cuda3d projector option is removed. +unpadded_GPULink + This is set since FP3D no longer silently fails with GPULink memory + that is not padded to a multiple of 32 pixels + For future backward-incompatible changes, extra features will be added here diff --git a/src/Features.cpp b/src/Features.cpp index 07c93b9..c758084 100644 --- a/src/Features.cpp +++ b/src/Features.cpp @@ -40,6 +40,9 @@ _AstraExport bool hasFeature(const std::string &flag) { if (flag == "fan_cone_BP_density_weighting_by_default") { return true; } + if (flag == "unpadded_GPULink") { + return true; + } return false; } -- cgit v1.2.1