I am trying to build Pytorch from source using CUDA10.0. I am facing the following issue.
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation.  All rights reserved.

[227/5493] Building C object confu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\subgraph\sigmoid.c.obj
cl : Command line warning D9025 : overriding '/O2' with '/O1'
[228/5493] Building C object confu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\subgraph\square-root.c.obj
cl : Command line warning D9025 : overriding '/O2' with '/O1'
[229/5493] Building C object confu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\subgraph\softmax.c.obj
cl : Command line warning D9025 : overriding '/O2' with '/O1'
[230/5493] Building C object confu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\subgraph\multiply2.c.obj
cl : Command line warning D9025 : overriding '/O2' with '/O1'
[232/5493] Building C object confu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\subgraph\prelu.c.obj
cl : Command line warning D9025 : overriding '/O2' with '/O1'
[234/5493] Building C object confu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\subgraph\negate.c.obj
cl : Command line warning D9025 : overriding '/O2' with '/O1'
[235/5493] Building C object confu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\operators\average-pooling-nhwc.c.obj
FAILED: confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/operators/average-pooling-nhwc.c.obj
C:\PROGRA~2\MICROS~3\2017\COMMUN~1\VC\Tools\MSVC\1411~1.255\bin\HostX64\x64\cl.exe  /nologo -DCPUINFO_SUPPORTED_PLATFORM=1 -DFXDIV_USE_INLINE_ASSEMBLY=0 -DWIN32_LEAN_AND_MEAN -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_SPARSE=1 -DXNN_LOG_LEVEL=0 -D_WIN32_WINNT=0x0601 -Drestrict="" -I..\third_party\XNNPACK\include -I..\third_party\XNNPACK\src -I..\third_party\cpuinfo\deps\clog\include -I..\third_party\cpuinfo\include -I..\third_party\pthreadpool\include -I..\third_party\FXdiv\include -I..\third_party\FP16\include -I..\third_party\protobuf\src /DWIN32 /D_WINDOWS /w /bigobj /MD /O2 /Ob2 /DNDEBUG /w /bigobj /wd4146  /O1 /showIncludes /Foconfu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\operators\average-pooling-nhwc.c.obj /Fdconfu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\XNNPACK.pdb /FS -c ..\third_party\XNNPACK\src\operators\average-pooling-nhwc.c
cl : Command line warning D9025 : overriding '/O2' with '/O1'
..\third_party\XNNPACK\src\xnnpack/params-init.h(825): error C2059: syntax error: 'bad suffix on number'
..\third_party\XNNPACK\src\xnnpack/params-init.h(840): error C2059: syntax error: 'bad suffix on number'
..\third_party\XNNPACK\src\operators\average-pooling-nhwc.c(157): error C2059: syntax error: 'bad suffix on number'
[237/5493] Building C object confu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\operators\binary-elementwise-nd.c.obj
FAILED: confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/operators/binary-elementwise-nd.c.obj
C:\PROGRA~2\MICROS~3\2017\COMMUN~1\VC\Tools\MSVC\1411~1.255\bin\HostX64\x64\cl.exe  /nologo -DCPUINFO_SUPPORTED_PLATFORM=1 -DFXDIV_USE_INLINE_ASSEMBLY=0 -DWIN32_LEAN_AND_MEAN -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_SPARSE=1 -DXNN_LOG_LEVEL=0 -D_WIN32_WINNT=0x0601 -Drestrict="" -I..\third_party\XNNPACK\include -I..\third_party\XNNPACK\src -I..\third_party\cpuinfo\deps\clog\include -I..\third_party\cpuinfo\include -I..\third_party\pthreadpool\include -I..\third_party\FXdiv\include -I..\third_party\FP16\include -I..\third_party\protobuf\src /DWIN32 /D_WINDOWS /w /bigobj /MD /O2 /Ob2 /DNDEBUG /w /bigobj /wd4146  /O1 /showIncludes /Foconfu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\operators\binary-elementwise-nd.c.obj /Fdconfu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\XNNPACK.pdb /FS -c ..\third_party\XNNPACK\src\operators\binary-elementwise-nd.c
cl : Command line warning D9025 : overriding '/O2' with '/O1'
..\third_party\XNNPACK\src\xnnpack/params-init.h(825): error C2059: syntax error: 'bad suffix on number'
..\third_party\XNNPACK\src\xnnpack/params-init.h(840): error C2059: syntax error: 'bad suffix on number'
..\third_party\XNNPACK\src\operators\binary-elementwise-nd.c(206): error C2059: syntax error: 'bad suffix on number'
..\third_party\XNNPACK\src\operators\binary-elementwise-nd.c(214): error C2059: syntax error: 'bad suffix on number'
[238/5493] Building C object confu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\operators\argmax-pooling-nhwc.c.obj
FAILED: confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/operators/argmax-pooling-nhwc.c.obj
C:\PROGRA~2\MICROS~3\2017\COMMUN~1\VC\Tools\MSVC\1411~1.255\bin\HostX64\x64\cl.exe  /nologo -DCPUINFO_SUPPORTED_PLATFORM=1 -DFXDIV_USE_INLINE_ASSEMBLY=0 -DWIN32_LEAN_AND_MEAN -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_SPARSE=1 -DXNN_LOG_LEVEL=0 -D_WIN32_WINNT=0x0601 -Drestrict="" -I..\third_party\XNNPACK\include -I..\third_party\XNNPACK\src -I..\third_party\cpuinfo\deps\clog\include -I..\third_party\cpuinfo\include -I..\third_party\pthreadpool\include -I..\third_party\FXdiv\include -I..\third_party\FP16\include -I..\third_party\protobuf\src /DWIN32 /D_WINDOWS /w /bigobj /MD /O2 /Ob2 /DNDEBUG /w /bigobj /wd4146  /O1 /showIncludes /Foconfu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\operators\argmax-pooling-nhwc.c.obj /Fdconfu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\XNNPACK.pdb /FS -c ..\third_party\XNNPACK\src\operators\argmax-pooling-nhwc.c
cl : Command line warning D9025 : overriding '/O2' with '/O1'
..\third_party\XNNPACK\src\xnnpack/params-init.h(825): error C2059: syntax error: 'bad suffix on number'
..\third_party\XNNPACK\src\xnnpack/params-init.h(840): error C2059: syntax error: 'bad suffix on number'
[239/5493] Building C object confu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\operators\constant-pad-nd.c.obj
FAILED: confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/operators/constant-pad-nd.c.obj
C:\PROGRA~2\MICROS~3\2017\COMMUN~1\VC\Tools\MSVC\1411~1.255\bin\HostX64\x64\cl.exe  /nologo -DCPUINFO_SUPPORTED_PLATFORM=1 -DFXDIV_USE_INLINE_ASSEMBLY=0 -DWIN32_LEAN_AND_MEAN -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_SPARSE=1 -DXNN_LOG_LEVEL=0 -D_WIN32_WINNT=0x0601 -Drestrict="" -I..\third_party\XNNPACK\include -I..\third_party\XNNPACK\src -I..\third_party\cpuinfo\deps\clog\include -I..\third_party\cpuinfo\include -I..\third_party\pthreadpool\include -I..\third_party\FXdiv\include -I..\third_party\FP16\include -I..\third_party\protobuf\src /DWIN32 /D_WINDOWS /w /bigobj /MD /O2 /Ob2 /DNDEBUG /w /bigobj /wd4146  /O1 /showIncludes /Foconfu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\operators\constant-pad-nd.c.obj /Fdconfu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\XNNPACK.pdb /FS -c ..\third_party\XNNPACK\src\operators\constant-pad-nd.c
cl : Command line warning D9025 : overriding '/O2' with '/O1'
..\third_party\XNNPACK\src\xnnpack/params-init.h(825): error C2059: syntax error: 'bad suffix on number'
..\third_party\XNNPACK\src\xnnpack/params-init.h(840): error C2059: syntax error: 'bad suffix on number'
[240/5493] Building C object confu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\operators\channel-shuffle-nc.c.obj
cl : Command line warning D9025 : overriding '/O2' with '/O1'
[241/5493] Building C object confu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\operators\convolution-nhwc.c.obj
FAILED: confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/operators/convolution-nhwc.c.obj
C:\PROGRA~2\MICROS~3\2017\COMMUN~1\VC\Tools\MSVC\1411~1.255\bin\HostX64\x64\cl.exe  /nologo -DCPUINFO_SUPPORTED_PLATFORM=1 -DFXDIV_USE_INLINE_ASSEMBLY=0 -DWIN32_LEAN_AND_MEAN -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_SPARSE=1 -DXNN_LOG_LEVEL=0 -D_WIN32_WINNT=0x0601 -Drestrict="" -I..\third_party\XNNPACK\include -I..\third_party\XNNPACK\src -I..\third_party\cpuinfo\deps\clog\include -I..\third_party\cpuinfo\include -I..\third_party\pthreadpool\include -I..\third_party\FXdiv\include -I..\third_party\FP16\include -I..\third_party\protobuf\src /DWIN32 /D_WINDOWS /w /bigobj /MD /O2 /Ob2 /DNDEBUG /w /bigobj /wd4146  /O1 /showIncludes /Foconfu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\src\operators\convolution-nhwc.c.obj /Fdconfu-deps\XNNPACK\CMakeFiles\XNNPACK.dir\XNNPACK.pdb /FS -c ..\third_party\XNNPACK\src\operators\convolution-nhwc.c
cl : Command line warning D9025 : overriding '/O2' with '/O1'
..\third_party\XNNPACK\src\xnnpack/params-init.h(825): error C2059: syntax error: 'bad suffix on number'
..\third_party\XNNPACK\src\xnnpack/params-init.h(840): error C2059: syntax error: 'bad suffix on number'
[242/5493] Linking C static library lib\clog.lib
ninja: build stopped: subcommand failed.

Please let me know if you need any other details.