QMICodeBase / TORTOISEV4

Official TORTOISE Diffusion MRI Processing Pipeline V4 Source Code and Documentation
GNU General Public License v3.0
18 stars 4 forks source link

Cannot make nonCUDA version TORTOISEV4 #9

Open DISAPPEARED13 opened 8 months ago

DISAPPEARED13 commented 8 months ago

Hi there, I run cmake . -D USECUDA=0 -D USE_VTK=0 -D ITK_DIR=../../libraries/InsightToolkit-5.3rc04_build or cmake . -D USECUDA=0 -D USE_VTK=1 -D ITK_DIR=../../libraries/InsightToolkit-5.3rc04_build -D VTK_DIR=../../libraries/VTK-8.0.1_build and somr errors occurs in run_drbuddi_stage.cxx, shows that there's not declared in this scope, the wrong function is like DuplicateFromCUDAImage, MultiplyImage,SumImage and AddImages. after check the src directory I found that the DuplicateFromCUDAImage is in "../cuda_src/compute_metric.h" after include the files compute_metric.h , new errors occurs, like cuda_utils.h cannot find cuda.h

Is it means that DRBUDDI just only can run on CUDA?

eurotomania commented 8 months ago

Hello,

No DRBUDDI can be compiled and run without CUDA. Can you copy/paste the exact error message for me to look at? Thanks.

On Mon, Oct 16, 2023 at 4:38 AM DISAPPEARED13 @.***> wrote:

Hi there, I run cmake . -D USECUDA=0 -D USE_VTK=0 -D ITK_DIR=../../libraries/InsightToolkit-5.3rc04_build or cmake . -D USECUDA=0 -D USE_VTK=1 -D ITK_DIR=../../libraries/InsightToolkit-5.3rc04_build -D VTK_DIR=../../libraries/VTK-8.0.1_build and somr errors occurs in run_drbuddi_stage.cxx, shows that there's not declared in this scope, the wrong function is like DuplicateFromCUDAImage, MultiplyImage,SumImage and AddImages. after check the src directory I found that the DuplicateFromCUDAImage is in "../cuda_src/compute_metric.h" after include the files compute_metric.h , new errors occurs, like cuda_utils.h cannot find cuda.h

Is it means that DRBUDDI just only can run on CUDA?

— Reply to this email directly, view it on GitHub https://github.com/eurotomania/TORTOISEV4/issues/9, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEFQZWEUYTWNTYZEUHVCNUDX7TXARAVCNFSM6AAAAAA6BZVKQOVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2DINRYGE2TMMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- M. Okan Irfanoglu Graduate Student & GTA Computer Sciences & Engineering Ohio State University

DISAPPEARED13 commented 8 months ago

Thanks for reply! The main error is in run_drbuddi_stage.cxx shows errors with USECUDA=0, the function of DuplicateFromCUDAImage, AddImage and so on have no declaration. and I don't know why. after try to remoe the condition for including the head files. errors comes to DRBUDDIBase.h and shows not file named cuda.h. But if I cmake the project with USECUDA=1, no errors happens. It seems that DRBUDDI only runs with CUDA.

eurotomania commented 8 months ago

Hello,

This was a compile bug (i.e. #ifdef USECUDA bug) that I had fixed some time ago. Please pull again from the repository and try to recompile without CUDA.

hopefully, it should work no problem.

On Tue, Oct 17, 2023 at 10:22 PM DISAPPEARED13 @.***> wrote:

Thanks for reply! The main error is in run_drbuddi_stage.cxx shows errors with USECUDA=0, the function of DuplicateFromCUDAImage, AddImage and so on have no declaration. and I don't know why. after try to remoe the condition for including the head files. errors comes to DRBUDDI.h and shows not file named cuda.h. But if I cmake the project with USECUDA=1, no errors happens. It seems that DRBUDDI only runs with CUDA.

— Reply to this email directly, view it on GitHub https://github.com/eurotomania/TORTOISEV4/issues/9#issuecomment-1767509040, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEFQZWGBHDD4NHVTDFMDOMDX744PPAVCNFSM6AAAAAA6BZVKQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRXGUYDSMBUGA . You are receiving this because you commented.Message ID: @.***>

-- M. Okan Irfanoglu Graduate Student & GTA Computer Sciences & Engineering Ohio State University