Skip to content

Commit

Permalink
Set parallel to false if parent_job is not nothing (#1348)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Mar 16, 2024
1 parent 2f6d564 commit e5fbf09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4758,7 +4758,7 @@ function GPUCompiler.codegen(output::Symbol, job::CompilerJob{<:EnzymeTarget};
target_machine = GPUCompiler.llvm_machine(primal_job.config.target)
end

parallel = Threads.nthreads() > 1
parallel = parent_job === nothing ? Threads.nthreads() > 1 : false
process_module = false
device_module = false
if parent_job !== nothing
Expand Down

0 comments on commit e5fbf09

Please sign in to comment.