Skip to content

addworker allow for starting with different threads #62

@vchuravy

Description

@vchuravy

Currently our addworker API is quite limited and we override some environment variables by default

function addworker(; env=Vector{Pair{String, String}}())
exe = test_exe()
exeflags = exe[2:end]
push!(env, "JULIA_NUM_THREADS" => "1")
# Malt already sets OPENBLAS_NUM_THREADS to 1
push!(env, "OPENBLAS_NUM_THREADS" => "1")
wrkr = Malt.Worker(;exeflags, env)
WORKER_IDS[wrkr.proc_pid] = length(WORKER_IDS) + 1
return wrkr
end

Things I see could be useful.

  • Full control over environment flags
  • Julia command line --threads in particular
  • exename swap?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions