在Windows上构建Nvptx工具

时间:2018-03-23 22:10:24

标签: windows gcc offloading

我尝试在Windows上安装nvptx-tools以启用GCC卸载工具,但我无法做到。我从here制作了一份nvptx-tools并构建它我遵循了这个tutorial(使用“build 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

0 个答案:

没有答案
相关问题