1

我试图在 Windows 上安装 nvptx-tools 以启用 GCC 卸载工具,但我做不到。我从这里复制了 nvptx-tools并按照本教程进行构建(带有“构建 nvptx-tools”的部分)。如果我将所有命令放在一个脚本中,它会在 Windows 上运行并只创建一些日志文件,而在 Linux 中它会构建 nvptx-tools(我在 vm 中运行脚本)。我提到我已经安装了 GCC-2.7.0。还有其他方法可以在 Windows 上安装 nvptx-tools 吗?

我的脚本是:

GCC7ROOT=C:/Users/Marin/Desktop/OpenACCSupport
CUDA=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1

mkdir -p $GCC7ROOT/build/nvptx-build
cd $GCC7ROOT/build/nvptx-build

$GCC7ROOT/source/nvptx-tools/configure  \
   --prefix=$GCC7ROOT/install \
   --target=nvptx-none \
   --with-cuda-driver-include=$CUDA/include \
   --with-cuda-driver-lib=$CUDA/lib/x64 \
   --with-cuda-runtime-include=$CUDA/include \
   --with-cuda-runtime-lib=$CUDA/lib/x64 \
   CC='gcc -m64' \
   CXX='g++ -m64'

mingw32-make
mingw32-make install
4

0 回答 0