Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Visual Studio Code 中启用 OpenMP?
我知道我们需要添加一个标志'-fopenmp',但我不知道在哪里?
如果可能,共享一个键盘快捷键来访问该文件。
谢谢!
@Tryer 使用 Makefile 的解决方案绝对有用且可取。
或者,可以使用 g++ 将其传递为:
g++ test.cc -o test -fopenmp