[Castor-users] problem in multithreading

STUTE Simon simon.stute at chu-nantes.fr
Tue Jun 2 11:04:00 CEST 2020


Please always answer to the list as it may be of interest for other users.

This warning message cannot be more clear: the code was not compiled with the CASTOR_OMP option. You should redo the compilation following the users guide.

Simon
________________________________
From: Hadi Rezaei <hrezaei.m.ph at gmail.com>
Sent: Tuesday, June 2, 2020 10:55:14 AM
To: STUTE Simon <simon.stute at chu-nantes.fr>
Subject: Re: [Castor-users] problem in multithreading

Thank you for responding. I did it but I found this message "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!! castor-recon() -> Option -th is available only if the code is compiled using the CASTOR_OMP environment variable set to 1 !
!!!!!                   The execution will continue BUT WITH ONLY ONE THREAD !
!!!!!                   We strongly advice to compile CASToR with OpenMP !"
I type "export CASTOR_OMP=1 when I installed castor.



On Tue, Jun 2, 2020 at 1:09 PM STUTE Simon <simon.stute at chu-nantes.fr<mailto:simon.stute at chu-nantes.fr>> wrote:
Dear Hadi,

The option "-th 0" will automatically fix a number of threads corresponding to the number of cores in your system.

We built CASToR so that it does not do anything by default unless the use asks for it.

Best
Simon
________________________________
From: Castor-users <castor-users-bounces at lists.castor-project.org<mailto:castor-users-bounces at lists.castor-project.org>> on behalf of Hadi Rezaei <hrezaei.m.ph at gmail.com<mailto:hrezaei.m.ph at gmail.com>>
Sent: Tuesday, June 2, 2020 10:24:19 AM
To: castor-users at lists.castor-project.org<mailto:castor-users at lists.castor-project.org> <castor-users at lists.castor-project.org<mailto:castor-users at lists.castor-project.org>>
Subject: [Castor-users] problem in multithreading

Dear CASToR users
I used castor_v2.1 and I exported CASTOR_OMP=1 and CASTOR_MPI for installation but when I run a program only one thread is used. I attached a picture that indicates it. How can I use multithreading for reconstruction? I used a big scanner and I need to faster reconstruction!!
Any answer will be highly appreciated!
Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.castor-project.org/pipermail/castor-users/attachments/20200602/06d564ed/attachment.html>


More information about the Castor-users mailing list