search

Home  >  Q&A  >  body text

c++ - 请问OMP_NUM_THREADS 是什么?怎么设置?

大家讲道理大家讲道理2813 days ago983

reply all(1)I'll reply

  • 阿神

    阿神2017-04-17 13:50:22

    OMP_NUM_THREADS is the number of threads available for execution. Your code uses getenv, so the environment variables are set.
    Created a new variable but still prompts Set environment OMP_NUM_THREADS to 1 because your execution environment does not inherit the environment variable.
    You need to export OMP_NUM_THREADS.

    reply
    0
  • Cancelreply