Git Product home page Git Product logo

Comments (9)

meiqua avatar meiqua commented on July 20, 2024

查了下,是因为vs不支持高级点的openmp指令。手动模拟了下:custom reduction,换上应该好了

from shape_based_matching.

oUp2Uo avatar oUp2Uo commented on July 20, 2024

icp的60多行那,也有类似的报错应该

from shape_based_matching.

meiqua avatar meiqua commented on July 20, 2024

对 这样写好理解些

from shape_based_matching.

xinsuinizhuan avatar xinsuinizhuan commented on July 20, 2024

image
如图所示:Windows下VS打开openmp编译报以下错误,关闭OMP则可以用。这是啥情况?

最后怎么解决的?我也遇到了同样的问题?

from shape_based_matching.

xinsuinizhuan avatar xinsuinizhuan commented on July 20, 2024

查了下,是因为vs不支持高级点的openmp指令。手动模拟了下:custom reduction,换上应该好了

链接失效了,怎么手动模拟,怎么改?

from shape_based_matching.

meiqua avatar meiqua commented on July 20, 2024

哦对,被墙了。可以参考这个

from shape_based_matching.

Mctor avatar Mctor commented on July 20, 2024

icp的60多行那,也有类似的报错应该
@meiqua 请问icp这里怎么解决的?链接里的没有涉及到。

from shape_based_matching.

meiqua avatar meiqua commented on July 20, 2024

@Mctor 跟链接里类似,多一个private相加最后再加起来。当然,最简单的方法是直接注释掉。

from shape_based_matching.

meiqua avatar meiqua commented on July 20, 2024

Quick Changes:

  1. Delete original openmp, paste those lines before the for loop
#ifdef _OPENMP
#pragma omp parallel
    {
#endif
        std::vector<Match> match_private;
#ifdef _OPENMP
#pragma omp for nowait
#endif
    for (int template_id = 0; template_id < template_pyramids.size(); ++template_id)
  1. Paste those lines after the insert function
        match_private.insert(match_private.end(), candidates.begin(), candidates.end());
    }
#ifdef _OPENMP
#pragma omp critical
        {
#endif
        matches.insert(matches.end(), match_private.begin(), match_private.end());
#ifdef _OPENMP
        }
    }
#endif

That's all !

from shape_based_matching.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.