You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by la...@apache.org on 2021/10/17 15:32:00 UTC

[incubator-mxnet] branch master updated: Fix Windows-GPU build for monolithic arch dll (#20466)

This is an automated email from the ASF dual-hosted git repository.

lausen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 6bbe886  Fix Windows-GPU build for monolithic arch dll (#20466)
6bbe886 is described below

commit 6bbe886e89b518c5f1cbc663c02802105b165477
Author: Matteo Salvarezza <ma...@gmail.com>
AuthorDate: Sun Oct 17 17:28:46 2021 +0200

    Fix Windows-GPU build for monolithic arch dll (#20466)
---
 CMakeLists.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6966920..090403f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -759,16 +759,16 @@ elseif(MSVC)
             PRIVATE "$<$<AND:$<CONFIG:MINSIZEREL>,$<COMPILE_LANGUAGE:CUDA>>:-Xcompiler=-MD -Gy /bigobj>")
       else()
         target_compile_options(
-          mxnet_${arch} 
+          mxnet 
           PRIVATE "$<$<AND:$<CONFIG:DEBUG>,$<COMPILE_LANGUAGE:CUDA>>:-Xcompiler=-MTd -Gy /bigobj>")
         target_compile_options(
-          mxnet_${arch}
+          mxnet
           PRIVATE "$<$<AND:$<CONFIG:RELEASE>,$<COMPILE_LANGUAGE:CUDA>>:-Xcompiler=-MT -Gy /bigobj>")          
         target_compile_options(
-          mxnet_${arch}
+          mxnet
           PRIVATE "$<$<AND:$<CONFIG:RELWITHDEBINFO>,$<COMPILE_LANGUAGE:CUDA>>:-Xcompiler=-MT -Gy /bigobj>")
         target_compile_options(
-          mxnet_${arch}
+          mxnet
           PRIVATE "$<$<AND:$<CONFIG:MINSIZEREL>,$<COMPILE_LANGUAGE:CUDA>>:-Xcompiler=-MT -Gy /bigobj>")
       endif()
     endif(USE_SPLIT_ARCH_DLL)