Skip to content

Commit

Permalink
added few additional optimization flag to MSVC without causing wrong …
Browse files Browse the repository at this point in the history
…results
  • Loading branch information
azimonti committed Sep 12, 2024
1 parent e4d19e2 commit 7e1662f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/libnn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ add_definitions( -DLOGGING -DCOUTEXT -DUSE_BLAS)

if(MSVC)
# Other optimization are making the results incorrect for SGD
set(CMAKE_C_FLAGS_RELEASE " /O1 ")
set(CMAKE_CXX_FLAGS_RELEASE " /O1 ")
set(CMAKE_C_FLAGS_RELEASE " /O1 /Oi /Ob2 /Oy /GS-")
set(CMAKE_CXX_FLAGS_RELEASE " /O1 /Oi /Ob2 /Oy /GS-")
generic_libs_find(hdf5 ON )
generic_libs_find(zlib ON )
generic_libs_find(lapack ON )
Expand Down

0 comments on commit 7e1662f

Please sign in to comment.