Skip to content

Conversation

jlblancoc
Copy link
Member

  • -march=native is not for MSVC
  • Nicer grouping of targets in IDE "folders"

@jlblancoc jlblancoc requested a review from chrisbeall June 2, 2019 09:47
@chrisbeall
Copy link
Member

Oops! But we don't want Windows users to miss out on the huge speedup completely, so if there's no direct equivalent flag, then we should try to enable AVX, FMA, etc. directly? Something like this maybe?

CHECK_CXX_COMPILER_FLAG("/arch:AVX" COMPILER_OPT_ARCH_AVX_SUPPORTED)
if(COMPILER_OPT_ARCH_AVX_SUPPORTED)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:AVX")
endif()

@dellaert
Copy link
Member

dellaert commented Jun 4, 2019

I will merge, I propose we leave the windows improvements for another PR.

@dellaert dellaert merged commit f2e3e81 into develop Jun 4, 2019
@dellaert dellaert deleted the minor_msvc_fixes branch June 4, 2019 02:14
@jlblancoc jlblancoc restored the minor_msvc_fixes branch December 16, 2019 14:07
@jlblancoc jlblancoc deleted the minor_msvc_fixes branch December 16, 2019 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants