Skip to content
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

OpenMP seems to be fine but ncorr doesn't recognize that #10

Open
mahmoodn opened this issue Jul 16, 2019 · 1 comment
Open

OpenMP seems to be fine but ncorr doesn't recognize that #10

mahmoodn opened this issue Jul 16, 2019 · 1 comment

Comments

@mahmoodn
Copy link

mahmoodn commented Jul 16, 2019

Although I have installed PCT toolbox and openmp configurations seems to be fine, as I run handles_ncorr = ncorr, I get this error:

Files compiled, but it was determined that OpenMP 
is not actually supported. Please reinstall Ncorr in 
single threaded mode or use a compiler which 
supports OpenMP

Please see that all commands are successful.

>> mex -c standard_datatypes.cpp
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex -c ncorr_datatypes.cpp
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex -c ncorr_lib.cpp
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formmask.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formregions.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formboundary.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formthreaddiagram.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_formunion.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_extrapdata.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_adddisp.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_convert.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_dispgrad.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_testopenmp.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_calcseeds.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_rgdic.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_testopenmp.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj COMFLAGS="$COMFLAGS /openmp /DNCORR_OPENMP"
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_calcseeds.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj COMFLAGS="$COMFLAGS /openmp /DNCORR_OPENMP"
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> mex ncorr_alg_testopenmp.cpp standard_datatypes.obj ncorr_datatypes.obj ncorr_lib.obj COMFLAGS="$COMFLAGS /openmp /DNCORR_OPENMP"
Building with 'Microsoft Visual C++ 2013'.
MEX completed successfully.
>> type('ncorr_installinfo.txt')

1,4
@betruth
Copy link

betruth commented May 8, 2020

lake of "#define NCORR_OPENMP", add this to "ncorr_lib.h"

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

No branches or pull requests

2 participants