shape_based_matching icon indicating copy to clipboard operation
shape_based_matching copied to clipboard

OpenMP problem

Open huynhbaobk opened this issue 5 years ago • 8 comments

image image image Hi @meiqua , right now I can run the project normally without set OpenMP, but after setting this to 'yes' I got these error. Could you help with this problem? Thanks in advance

huynhbaobk avatar Mar 19 '20 11:03 huynhbaobk

You can refer to this comment.

meiqua avatar Mar 19 '20 11:03 meiqua

Hi @meiqua, I tried using this project as a .dll C++ CLI/CLR for my WPF C# project (already set OpenMP and AVX2 for C++ project) but the time for running the function too low (up to 2600ms)? Have you tried this algorithm for any C# project? Thanks

huynhbaobk avatar Mar 27 '20 04:03 huynhbaobk

haven't tried C#. What's the time cost in C++ under the same condition?

meiqua avatar Mar 27 '20 09:03 meiqua

Hi @meiqua , sr for the late response. image This is the result in C++ But I found that when I set AVX2 or SSE in C++ "mipp.h" always "use mipp_scalar_op.h" image When I set this in C# ( C++/CLI) it change to "math/avx_mathfun.h" image And I got this error image

image Do you have any idea for this case? I use vs19, and "corecrt.h" come from C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt

huynhbaobk avatar Mar 30 '20 05:03 huynhbaobk

c++ seems good. For c#, maybe c++ can't be used directly? There should be a standard way for c# to use c++ class.

meiqua avatar Mar 30 '20 13:03 meiqua

I already tried to creaat dll C++/CLI for C# but the performance still low

huynhbaobk avatar Mar 31 '20 08:03 huynhbaobk

Sorry, I'm not familiar with C#. But I think using same dll in C++ and C# the time should be similar.

meiqua avatar Apr 02 '20 05:04 meiqua

I already tried to creaat dll C++/CLI for C# but the performance still low

how to creaat dll C++/CLI for C#? Could you help with this problem? Thanks in advance

Mrc-2020 avatar Dec 15 '21 03:12 Mrc-2020