Skip to content

Commit

Permalink
[sycl-post-link] Do not save all split modules in memory (#5021)
Browse files Browse the repository at this point in the history
Now all split modules are first saved in memory and then processed one by one.
Each split module may require tens of megabytes in memory and total amount of
split modules may be significant. It all may lead to overflow of RAM memory.

Rewrite module splitting in a way that each split module is processed and
immediately saved into a file without temporary collecting all modules in RAM.

Signed-off-by: Mikhail Lychkov <[email protected]>
  • Loading branch information
mlychkov authored Nov 26, 2021
1 parent aa12f9d commit 6266820
Show file tree
Hide file tree
Showing 2 changed files with 264 additions and 319 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ define dso_local spir_kernel void @KERNEL_CCC() {
; CHECK-PROP1: SpecConst=2|
; CHECK-PROP1-NOT: SpecConst2
;
; CHECK-PROP2: [SYCL/specialization constants]
; CHECK-PROP2: [SYCL/specialization constants default values]
; CHECK-PROP2-NOT: [SYCL/specialization constants
Loading

0 comments on commit 6266820

Please sign in to comment.