• Krzysztof Drewniak's avatar
    [mlir] Improve context handling to potentially solve threading bugs (#1867) · ac15425a
    Krzysztof Drewniak authored
    Update `mlir_program` to only create one dialect registry, and to call
    registerRocMLIRPasses() (which is needed and may not be thread-safe)
    exactly once. 
    
    In addition, use a single thread pool across all contexts. This is
    recommended practice upstream for libraries that perform a lot of
    compile jobs, and saves on the overhead of creating and destroying a
    lot of threads
    ac15425a
mlir.cpp 29.1 KB