Skip to content

Commit

Permalink
Switch back to large codemodel
Browse files Browse the repository at this point in the history
  • Loading branch information
siboehm committed Jul 28, 2021
1 parent 56966a1 commit fb63f2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lleaves/llvm_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ def _get_target_machine():
except RuntimeError:
features = ""

# similar to Numba's AOT configuration
# large codemodel is necessary for large, ~1000 tree models.
# for smaller models "default" codemodel would be faster.
target_machine = target.create_target_machine(
cpu=llvm.get_host_cpu_name(),
features=features,
reloc="pic",
codemodel="default",
codemodel="large",
)
return target_machine

Expand Down

0 comments on commit fb63f2f

Please sign in to comment.