Skip to content

Commit

Permalink
Add heap size hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Kondrashov committed Jan 20, 2024
1 parent 8fa38f2 commit 082645f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Configuration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ const CHECK_BOUNDS_DEFAULT = nothing
const MATH_MODE_DEFAULT = nothing
const STARTUP_FILE_DEFAULT = "no"
const HISTORY_FILE_DEFAULT = "no"
const HEAP_SIZE_HINT_DEFAULT = "1G"

function roughly_the_number_of_physical_cpu_cores()
# https://gist.github.com/fonsp/738fe244719cae820245aa479e7b4a8d
Expand Down Expand Up @@ -233,6 +234,7 @@ These options will be passed as command line argument to newly launched processe
- `inline::Union{Nothing,String} = $INLINE_DEFAULT`
- `check_bounds::Union{Nothing,String} = $CHECK_BOUNDS_DEFAULT`
- `math_mode::Union{Nothing,String} = $MATH_MODE_DEFAULT`
- `heap_size_hint`::Union{Nothing,String} = $HEAP_SIZE_HINT_DEFAULT
- `startup_file::Union{Nothing,String} = "$STARTUP_FILE_DEFAULT"` By default, the startup file isn't loaded in notebooks.
- `history_file::Union{Nothing,String} = "$HISTORY_FILE_DEFAULT"` By default, the history isn't loaded in notebooks.
- `threads::Union{Nothing,String,Int} = default_number_of_threads()`
Expand All @@ -253,6 +255,7 @@ These options will be passed as command line argument to newly launched processe
inline::Union{Nothing,String} = INLINE_DEFAULT
check_bounds::Union{Nothing,String} = CHECK_BOUNDS_DEFAULT
math_mode::Union{Nothing,String} = MATH_MODE_DEFAULT
heap_size_hint::Union{Nothing,String} = HEAP_SIZE_HINT_DEFAULT

# notebook specified options
# the followings are different from
Expand Down Expand Up @@ -319,6 +322,7 @@ function from_flat_kwargs(;
inline::Union{Nothing,String} = INLINE_DEFAULT,
check_bounds::Union{Nothing,String} = CHECK_BOUNDS_DEFAULT,
math_mode::Union{Nothing,String} = MATH_MODE_DEFAULT,
heap_size_hint::Union{Nothing,String} = HEAP_SIZE_HINT_DEFAULT,
startup_file::Union{Nothing,String} = STARTUP_FILE_DEFAULT,
history_file::Union{Nothing,String} = HISTORY_FILE_DEFAULT,
threads::Union{Nothing,String,Int} = default_number_of_threads(),
Expand Down Expand Up @@ -370,6 +374,7 @@ function from_flat_kwargs(;
inline,
check_bounds,
math_mode,
heap_size_hint,
startup_file,
history_file,
threads,
Expand Down

0 comments on commit 082645f

Please sign in to comment.