From 24566d32ce9b7d512ecb82a8195b8340ceb7aae3 Mon Sep 17 00:00:00 2001 From: Zhou Wei <52485244+zhouwei25@users.noreply.github.com> Date: Fri, 23 Oct 2020 23:10:57 +0800 Subject: [PATCH] fix CUDA9 error due to BuildCustomizations (#28226) --- cmake/paddle_win.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/paddle_win.props b/cmake/paddle_win.props index 7e434c6d907..0115ad4b59f 100644 --- a/cmake/paddle_win.props +++ b/cmake/paddle_win.props @@ -15,11 +15,11 @@ InheritFromHost -ccbin "%(VCBinDir)" -x cu [GenerateRelocatableDeviceCode] [Include] [RequiredIncludes] [InterleaveSourceInPTX] [GPUDebugInfo] [GenerateLineInfo] [Keep] [KeepDir] [MaxRegCount] [PtxAsOptionV] [TargetMachinePlatform] [NvccCompilation] [CudaRuntime] [AdditionalOptions] - --use-local-env + --use-local-env --cl-version $(CudaClVersion) [CodeGeneration] -clean - - -Xcompiler "/EHsc [Warning] /nologo [Optimization] [ProgramDataBaseFileName] $(CudaForceSynchronousPdbWrites) [RuntimeChecks] [Runtime] [TypeInfo]" + + -Xcompiler "/EHsc [Warning] /nologo [Optimization] $(CudaForceSynchronousPdbWrites) [RuntimeChecks] [Runtime] [TypeInfo]" %(BaseCommandLineTemplate) [CompileOut] "%(FullPath)" %(BaseCommandLineTemplate) [HostDebugInfo] [Emulation] [FastMath] [Defines] %(HostCommandLineTemplate) [CompileOut] "%(FullPath)" -- GitLab