I tried to install nvptx-tools on Windows in order to enable GCC offload tools, but I couldn't do it. I made a copy of nvptx-tools from here and to build it I followed this tutorial (the part with "build nvptx-tools"). If I put all the commands in a script, it runs and creates only some log files on Windows, while in Linux it build nvptx-tools (I run the script in a vm). I mention that I have installed GCC-2.7.0. Is there any other way to install nvptx-tools on Windows?
My script is:
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