Skip to content

Rewrite for 1.9? #95

@timholy

Description

@timholy

In principle it seems like it should be possible to do away with GPUCompiler entirely on 1.9+. I suspect you basically want to call jl_save_system_image_to_stream with a custom list of new_specializations containing the Julia CodeInstances you want to cache to your library. Because I've barely glanced at how this package works, I don't have a clear understanding of how the interaction with the Julia runtime works, that might take some additional effort. But it seems likely that the actual compilation work would be vastly simpler now and likely handle a much larger fraction of the language.

You would surely need to create a custom wrapper (in Julia's repo) of jl_save_system_image_to_stream that handles your case. An example JL_DLLEXPORTed wrapper is jl_create_system_image which you might be able to use as a model. (I suspect your wrapper might be less complicated, but I am not sure.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions