gpt4 book ai didi

c++ - 在 linux 下的 c++ 程序中包含 amp.h 库

转载 作者:太空宇宙 更新时间:2023-11-04 12:38:50 26 4
gpt4 key购买 nike

我想在我在 Linux 上编写和运行的 c++ 程序中使用 amp.h 库;

所以我尝试将 amp.h 库包含在一个空的 .cpp 文件中,并尝试通过控制台使用 g++ 编译器对其进行编译。您可以在下面找到 .cpp 文件和我用来编译的命令:

#include <amp.h>
#include <amp_graphics.h>
#include <vector>

using namespace concurrency;
using namespace concurrency::graphics;

int main()
{
return 0 ;
}

所以编译器的回答是amp.h没有那个文件或目录;

我试图找到像这样的安装命令

sudo apt-get install amp.h

但是我没有得到什么好的结果。

编译是:

g++ "filename".cpp

最佳答案

您不能添加 amp.h 因为它有以下系统要求

  • Windows 7、Windows 8、Windows Server 2008 R2 或 Windows Server 2012
  • DirectX 11 Feature Level 11.0 或更高版本的硬件
  • 用于在软件模拟器、Windows 8 或 Windows Server 上进行调试2012 年为必填项。为了在硬件上进行调试,您必须安装显卡的驱动程序。

关于c++ - 在 linux 下的 c++ 程序中包含 amp.h 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40801025/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com