From 4877bd59448f0c15df7383a14a47e59195d984b7 Mon Sep 17 00:00:00 2001 From: Zhou Wei <52485244+zhouwei25@users.noreply.github.com> Date: Fri, 23 Oct 2020 23:12:13 +0800 Subject: [PATCH] fix CUDA9 error due to BuildCustomizations (#28222) --- 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