summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2021-11-16 16:35:20 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2021-11-16 17:30:16 +0100
commitd17f6102ab60863b3dead22d619a313aa277e514 (patch)
treef9d0a02fb2cba2e45d18f8c3a1b76a8bd11ee5b1
parente99c6a75bada269381b247c555786dda8b390b7a (diff)
downloadastra-d17f6102ab60863b3dead22d619a313aa277e514.tar.gz
astra-d17f6102ab60863b3dead22d619a313aa277e514.tar.bz2
astra-d17f6102ab60863b3dead22d619a313aa277e514.tar.xz
astra-d17f6102ab60863b3dead22d619a313aa277e514.zip
Add feature flag 'unpadded_GPULink'
This will let other toolboxes detect if ASTRA (properly) supports unpadded GPULink objects. See 6baf90217683b7bac2e87dd9fef944fab6a8a950.
-rw-r--r--include/astra/Features.h4
-rw-r--r--src/Features.cpp3
2 files changed, 7 insertions, 0 deletions
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;
}