Why is OpenMP in a mex file only producing 1 thread?

前端 未结 1 2012
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-06 05:32

I am new to OpenMP. I have the following code which compiles fine using Matlab mex configured with MSVS2010. The computer has 8 processors available (which I checked also by usi

相关标签:
1条回答
  • 2021-02-06 06:13

    Sigh. Typical, spend hours trying and failing and then find the answer 5 minutes after posting to SO.

    The file needs to be mexed with openmp support

    mex mexIndexedCopy.cpp COMPFLAGS="/openmp $COMPFLAGS"
    
    0 讨论(0)
提交回复
热议问题