REM Needs vcvars64.bat to be called
SET CUDADIR=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA
SET OLDPATH=%PATH%
SET CUDA_VER=%1
SET CUDA_VER_SHORT=%2
SET CUDA_PATH=%CUDADIR%\v%CUDA_VER%
SET PATH=%CUDA_PATH%;%OLDPATH%
SET CUDA_TOOLKIT_ROOT_DIR=%CUDA_PATH%
git submodule init
git submodule update
md build
cd build
cmake -DUSE_CUDA=%USE_CUDA% -DUSE_OPENMP=ON -DCUDA_ARCH_NAME=All -DCMAKE_CXX_FLAGS="/DDGL_EXPORTS" -DCMAKE_CONFIGURATION_TYPES="Release" .. -G "Visual Studio 15 2017 Win64" || EXIT /B 1
msbuild dgl.sln || EXIT /B 1
COPY Release\dgl.dll .
cd ..\python
"%PYTHON%" setup.py install --single-version-externally-managed --record=record.txt || EXIT /B 1
EXIT /B
