Skip to content

RESOURCES_EXHAUSTED error #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EmilySillars
Copy link

@EmilySillars EmilySillars commented Apr 16, 2025

  1. When I try to run tiny_matmul with verilator,
../toolchain/bin/snitch_cluster.vlt runtime/samples/tiny_matmul/my_tiny_matmul

I get the following error:

venv[hoppip@inf-155-54-205-141 build]$ ../toolchain/bin/snitch_cluster.vlt runtime/samples/tiny_matmul/my_tiny_matmul 
[fesvr] Wrote 36 bytes of bootrom to 0x1000
[fesvr] Wrote entry point 0x80000000 to bootloader slot 0x1020
[fesvr] Wrote 56 bytes of bootdata to 0x1024
[Tracer] Logging Hart          8 to logs/trace_hart_00000008.dasm
[Tracer] Logging Hart          0 to logs/trace_hart_00000000.dasm
[Tracer] Logging Hart          1 to logs/trace_hart_00000001.dasm
[Tracer] Logging Hart          2 to logs/trace_hart_00000002.dasm
[Tracer] Logging Hart          3 to logs/trace_hart_00000003.dasm
[Tracer] Logging Hart          4 to logs/trace_hart_00000004.dasm
[Tracer] Logging Hart          5 to logs/trace_hart_00000005.dasm
[Tracer] Logging Hart          6 to logs/trace_hart_00000006.dasm
[Tracer] Logging Hart          7 to logs/trace_hart_00000007.dasm
RESOURCE_EXHAUSTED; while invoking native function test_tiny_matmul.tiny_matmul; 
[ 1]   native hal.fence.create:0 -
[ 0]   native test_tiny_matmul.tiny_matmul:0 -
  1. If I add LLVM to the end of the quidditch_module cmake function, yielding
quidditch_module(SRC tiny_matmul.mlir ASSERT_XDSL LLVM)

The build fails with the error:

/home/hoppip/Quidditch/runtime/samples/tiny_matmul/tiny_matmul.mlir:1:1: error: no HAL target devices specified on the module (available = [ 'llvm-cpu' 'quidditch' 'vmvx' 'vmvx-inline' ])
  1. If I replace ASSERT_XDSL with LLVM in the quidditch_module cmake function, yielding
quidditch_module(SRC tiny_matmul.mlir LLVM)

and change line 24 of main.c to

              tiny_matmul_dispatch_0_library_query,

Quidditch builds, but when I try to run tiny_matmul, I get the same RESOURCES_EXHAUSTED error.

@EmilySillars
Copy link
Author

@compor are you able to reproduce this error on your machine?

@compor
Copy link
Collaborator

compor commented Apr 30, 2025

@compor are you able to reproduce this error on your machine?

I'm back from leave, so I'll try it today/tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants