-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General update and switch to std::mutex #27
Conversation
As there are other pull requests, maybe we should wait until they are merged or closed before trying to fix this PR? Rebasing on top of other fixes might help. |
Sounds like a good plan. |
This reverts commit b0ea16b. C++ headers were included from a C source file. This commit fixes the following error on Visual Studio 2017 version 15.8.8: 1>------ Build started: Project: VariationalRegistration, Configuration: Debug x64 ------ 1>VariationalRegistrationMain.cxx 1>getopt.c 1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\cstdio(29): error C2061: syntax error: identifier 'std' 1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\cstdio(29): error C2059: syntax error: ';' 1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\cstdio(29): error C2449: found '{' at file scope (missing function header?) 1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\cstdio(56): error C2059: syntax error: '}' 1>c:\dev\itk-git\modules\remote\variationalregistration\src\win32_compatibility\getopt.c(123): fatal error C1004: unexpected end-of-file found 1>Done building project "VariationalRegistration.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 48 up-to-date, 0 skipped ==========
Adapt to new multi-threading naming convention. Specifically: - Change `MultiThreader::ThreadInfoStruct` to `MultiThreaderBase::WorkUnitInfo` - Change `(threadInfo)->ThreadID` to `(threadInfo)->WorkUnitID` - Change `(threadInfo)->NumberOfThreads` to `(threadInfo)->NumberOfWorkUnits` after commit: InsightSoftwareConsortium/ITK@ce15429 Addresses deprecation warnings: ``` itkvariationalregistration\include\itkVariationalRegistrationDiffusionRegularizer.hxx(238): warning C4996: 'itk::MultiThreaderBase::ThreadInfoStruct': Use WorkUnitInfo, ThreadInfoStruct is deprecated since ITK 5.0 ```
On my computer, |
Could we merge this as is? It is an improvement, and there are plenty of things to do to fix this completely. |
We should try to keep CI green, if possible. There are build errors:
|
That was due to a change Hans did not long ago. The CI infrastructure should be updated to use a newer commit. Do you want me to do it, or will you do it yourself @thewtex? |
65% tests passed, 7 tests failed out of 20 Label Time Summary: Total Test time (real) = 155.20 sec The following tests FAILED: |
Should we merge this as is? It is big improvement. |
@dzenanz I'd suggest that this the failing test be commented out so that the dashboard is green and make an issue to fix the rest of the tests. |
All the 3D tests are failing, I think. And one 2D test is crashing. I would rather leave that painfully obvious then temporarily sweep it under the carpet. |
Please keep |
@thewtex Master is not in a working state, as can be seen on top of the README.rst. Master doesn't even compile, and this PR will bring it closer to working ( |
Ok, then thanks for moving the builds forward. 👍 Please see inline comment regarding |
I was getting some errors with this. An independent test/update of this PR would be welcome.