CERN / TIGRE

TIGRE: Tomographic Iterative GPU-based Reconstruction Toolbox
BSD 3-Clause "New" or "Revised" License
582 stars 191 forks source link

gpuids must be positive integers #573

Closed ReidIsaak closed 3 months ago

ReidIsaak commented 3 months ago

https://github.com/CERN/TIGRE/blob/7279e019645e3b9104f899e0255a5c2245915341/MATLAB/Utilities/IO/VarianCBCT/BH_ObjectRemapping.m#L58

Currently get the following error when trying to use beam hardening correction. Error using gpuDevice (line 26) Argument must be a positive integer or [].

Adding 1 to the gpuids.devices resolved the issue. g = gpuDevice(gpuids.devices(ii)+1);

AnderBiguri commented 3 months ago

Thanks @ReidIsaak ! Ithought I fixed these, but clearly I have not! Thanks for the find!

DaNian22 commented 3 months ago

How to use the beam hardening correction program?