question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pytorch core test failure: LLVM ERROR: Broken function found, compilation aborted!

See original GitHub issue

Repro:

PYTORCH_TEST_WITH_INDUCTOR=1  python test/test_torch.py   -k  test_nondeterministic_alert_grid_sample_2d_cuda

Error:

due to: 
Traceback (most recent call last):
  File "/fsx/users/binbao/torchdynamo-tip/torchdynamo/variables/tensor.py", line 283, in create
    assert (
AssertionError: torch.* op returned non-Tensor bool call_function <built-in function _cuda_isInBadFork>

from user code:
   File "/fsx/users/binbao/pytorch/torch/random.py", line 39, in manual_seed
    if not torch.cuda._is_in_bad_fork():

Set torchdynamo.config.verbose=True for more information
==========
Operand is null
  %7 = call float @__nv_floorf(<null operand!>)
in function kernel_0d1
LLVM ERROR: Broken function found, compilation aborted!
Aborted (core dumped)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
janselcommented, Oct 14, 2022

Though perhaps we shouldn’t be inlining in manual_seed() and just capture it in the graph.

0reactions
desertfirecommented, Oct 26, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

LLVM ERROR: Broken function found, compilation aborted ...
I get LLVM ERROR: Broken function found, compilation aborted! when including Base.precompile(Tuple{typeof(Base.permutedims), Array{Bool, 3}, ...
Read more >
LLVM ERROR: Broken function found, compilation aborted ...
The solution for me was just in info.plist change Swift Compiler Code Generation -> Optimization level -> Debug -> change all to None[-Onone]....
Read more >
[llvm-dev] LLVM ERROR: Broken module found, compilation ...
LLVM ERROR : Broken module found, compilation aborted! clang-6.0: error: Xtensa-ld command failed with exit code 1 (use -v to see invocation).
Read more >
LLVM ERROR: Broken function found, compilation aborted!
Looking at BuddyBuild's logs I found the error message that was causing the build to fail: Cannot allocate unsized type %partial-apply.context = ...
Read more >
LLVM ERROR: Broken module found, compilation aborted!
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found