Skip to content

Revert "[SYCL] workaround for memory consumption issue" #1391

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions clang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,7 @@ set(ENABLE_X86_RELAX_RELOCATIONS OFF CACHE BOOL
set(ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER FALSE CACHE BOOL
"Enable the experimental new pass manager by default.")

# Clang tool executes cc1 commands in the same process after b4a99a0
# It causes increasing memory consumption for compilations where several
# source files are passed (for C++ application) or several build steps (e.g.
# for SYCL application we have host, device and integration header step
# per source file). Memory is not freed for all cc1 commands until end
# This change forces clang driver use old behavior untill memory issue
# is fixed.
set(CLANG_SPAWN_CC1 ON CACHE BOOL
set(CLANG_SPAWN_CC1 OFF CACHE BOOL
"Whether clang should use a new process for the CC1 invocation")

# TODO: verify the values against LangStandards.def?
Expand Down