Skip to content

Conversation

@JeffBezanson
Copy link
Member

Also initialize it later, outside option parsing, so that modifying jl_options before calling jl_init works.

Also initialize it later, outside option parsing, so that modifying jl_options
before calling jl_init works.
@JeffBezanson JeffBezanson added the embedding Embedding Julia using the C API label Nov 11, 2022
@PallHaraldsson
Copy link
Contributor

PallHaraldsson commented Nov 15, 2022

This is basically the New option --heap-size-hint=<size> under program control rather than for the user? For embedding, but I'm just thinking can you also use it from within Julia [programs]? Would that be then a simple ccall (I'm ok with nothing more, I don't think you should use this too often...)? I would like to know if and how exactly (I believe such is possible from within Python and more languages).

@JeffBezanson JeffBezanson merged commit 9b3f5c3 into master Nov 15, 2022
@JeffBezanson JeffBezanson deleted the jb/setmaxmem branch November 15, 2022 23:32
@JeffBezanson
Copy link
Member Author

Yes. For now you can ccall it, though as you say I would not recommend doing that a lot.

d-netto pushed a commit to RelationalAI/julia that referenced this pull request Dec 20, 2023
Also initialize it later, outside option parsing, so that modifying jl_options
before calling jl_init works.
d-netto pushed a commit to RelationalAI/julia that referenced this pull request Dec 21, 2023
Also initialize it later, outside option parsing, so that modifying jl_options
before calling jl_init works.
d-netto added a commit to RelationalAI/julia that referenced this pull request Dec 21, 2023
Also initialize it later, outside option parsing, so that modifying jl_options
before calling jl_init works.

Co-authored-by: Jeff Bezanson <[email protected]>
d-netto added a commit to RelationalAI/julia that referenced this pull request Jan 2, 2024
Also initialize it later, outside option parsing, so that modifying jl_options
before calling jl_init works.

Co-authored-by: Jeff Bezanson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

embedding Embedding Julia using the C API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants