diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2021-11-16 11:28:05 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2021-11-16 11:28:05 +0100 |
commit | d59619737b79ca3bd732fedaff6665e600ee1335 (patch) | |
tree | 0cd6892de61ec80dd9f718b7f5980a83b4111d3e /include/astra/cuda/3d | |
parent | 231dd3e5e28319aa16155efd9ec7fdc69834666b (diff) | |
download | astra-d59619737b79ca3bd732fedaff6665e600ee1335.tar.gz astra-d59619737b79ca3bd732fedaff6665e600ee1335.tar.bz2 astra-d59619737b79ca3bd732fedaff6665e600ee1335.tar.xz astra-d59619737b79ca3bd732fedaff6665e600ee1335.zip |
Add new checkCuda function to simplify error handling
Diffstat (limited to 'include/astra/cuda/3d')
-rw-r--r-- | include/astra/cuda/3d/util3d.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/astra/cuda/3d/util3d.h b/include/astra/cuda/3d/util3d.h index 5f805df..e902a85 100644 --- a/include/astra/cuda/3d/util3d.h +++ b/include/astra/cuda/3d/util3d.h @@ -38,6 +38,8 @@ along with the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>. namespace astraCUDA3d { +using astraCUDA::checkCuda; + cudaPitchedPtr allocateVolumeData(const SDimensions3D& dims); cudaPitchedPtr allocateProjectionData(const SDimensions3D& dims); bool zeroVolumeData(cudaPitchedPtr& D_data, const SDimensions3D& dims); |