Skip to content

BUG: Do not build / use Pool multi-threader without winthreads or pth…#132

Merged
thewtex merged 1 commit intoInsightSoftwareConsortium:masterfrom
hjmjohnson:no-pthreads-no-pool
Jan 3, 2019
Merged

BUG: Do not build / use Pool multi-threader without winthreads or pth…#132
thewtex merged 1 commit intoInsightSoftwareConsortium:masterfrom
hjmjohnson:no-pthreads-no-pool

Conversation

@hjmjohnson
Copy link
Copy Markdown
Member

No description provided.

@hjmjohnson
Copy link
Copy Markdown
Member Author

http://review.source.kitware.com/#/c/23525/

Matt McCormick
Uploaded patch set 1.Jun 13 11:40 AM

Francois Budin
Patch Set 1: Code-Review+1Jun 13 12:02 PM

Kitware Build Robot
Patch Set 1: Verified-1 Build Failed: CDash filtered results: https://open.cdash.org/index.php?&project=Insight&filtercount=3&field1=buildname/string&compare1=63&value1=23525-1&field2=buildstarttime/date&compare2=83&value2=2015-03-01&field3=buildstarttime/date&compare3=84&value3=2029-01-01Jun 13 1:56 PM

Dzenan Zukic
Jun 14 6:50 AM

Patch Set 1: Code-Review+1

(1 comment)

Interface-wise, this is looking good!

Modules/Core/Common/src/itkMultiThreaderBase.cxx
Line 29:
You should probably move this definition to CMake code and have Pool-related tests only if this is enabled.

@hjmjohnson
Copy link
Copy Markdown
Member Author

@dzenanz This has gotten out of date, and I think you are the most appropriate person to address these issues. Can you take over this PR?

@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented Dec 28, 2018

I think that this patch was made for compatibility with emscripten. The part of the patch where GetGlobalDefaultNumberOfThreads and GetGlobalDefaultNumberOfThreadsByPlatform are moved to MultiThreaderBase can be separated and merged already. Emscripten-specific changes can be done at a later time. Unless @thewtex wants to finish the job now 😄

@dzenanz dzenanz force-pushed the no-pthreads-no-pool branch from 219091b to ed594eb Compare January 1, 2019 16:44
@dzenanz dzenanz self-assigned this Jan 1, 2019
@dzenanz dzenanz force-pushed the no-pthreads-no-pool branch from ed594eb to 5ef6a18 Compare January 1, 2019 17:39
@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented Jan 1, 2019

I rebased this on current master, but I guess #ifdefs need a proper update.

@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented Jan 1, 2019

Example runtime error running /Users/vsts/agent/2.144.0/work/1/s-build/bin/ITKCommon2TestDriver "itkMultiThreaderTypeFromEnvironmentTest" "PooL":

ITK test driver caught an ITK exception:

itk::ExceptionObject (0x7fec3b801fd0)
Location: "unknown" 
File: /Users/vsts/agent/2.144.0/work/1/s/Modules/Core/Common/src/itkMultiThreaderBase.cxx
Line: 521
Description: itk::ERROR: ITK has been built without PoolMultiThreader support!

@dzenanz dzenanz force-pushed the no-pthreads-no-pool branch from 5ef6a18 to f692f0b Compare January 2, 2019 14:31
@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented Jan 2, 2019

The problem was that check #if defined( ITK_USE_PTHREADS ) || defined( ITK_USE_WIN32_THREADS ) in itkMultiThreaderBase.cxx was before any header was included, so it was always false.

Copy link
Copy Markdown
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates @hjmjohnson and @dzenanz ! LGTM! :-)

@thewtex thewtex merged commit 83358eb into InsightSoftwareConsortium:master Jan 3, 2019
@hjmjohnson hjmjohnson deleted the no-pthreads-no-pool branch April 12, 2019 23:48
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request Apr 19, 2026
hjmjohnson pushed a commit that referenced this pull request Apr 25, 2026
ENH: support multi-dimensional tile configuration. Closes #127.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants