Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of memory error caused by linalg with vs2017 #3844

Closed
OXPHOS opened this issue Jun 14, 2017 · 5 comments
Closed

Out of memory error caused by linalg with vs2017 #3844

OXPHOS opened this issue Jun 14, 2017 · 5 comments

Comments

@OXPHOS
Copy link
Member

OXPHOS commented Jun 14, 2017

The linalg headers are causing C1060: out of heap space error when compiling with VS2017 on Appveyor consistently now. (Traced back to 2 months ago).

The closest solution I found here suggested that /Zmfactor option can be added to limit the pre-allocated memory.

The way I tried that I felt should work is (but I am not completely sure) modifying CMakeLists:

IF(MSVC)
	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zm1 ")
ELSE()
	SET(COMPILER_WARNINGS "-Wall -Wno-unused-parameter -Wformat -Wformat-security -Wparentheses -Wshadow -Wno-unknown-pragmas -Wno-deprecated")
ENDIF()

Zm1 is taken as a valid option by VS2017 but I still got C1060 error. So I have no clue how to fix it unless we refactor the macro structures.

Based on the assumption that the problem is caused by the numerous header in linalg lib.

@karlnapf
Copy link
Member

@vigsterkr ?

@vigsterkr
Copy link
Member

140a8eb is hopefully fixing this... let's see couple of builds. but basically disabled VS2017 for the time being (as it takes way too much time to run one job) & disabled parallel build, this way hopefully there's more memory left for building the given source file.

@vigsterkr
Copy link
Member

feel free to reopen if you start to see this again ;)

@vigsterkr
Copy link
Member

@vigsterkr
Copy link
Member

ok this should be done as @micmn divided up the files....

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

No branches or pull requests

3 participants