Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Trying mcmodel=medium to fix the failure in CMake static build
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrendx committed Apr 17, 2020
1 parent 43f4b4e commit 1af684c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_C_FLAGS}")
if(USE_CUDA)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mcmodel=medium")
endif()
endif()

if(NOT mxnet_LINKER_LIBS)
Expand Down

0 comments on commit 1af684c

Please sign in to comment.