Skip to content
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

Allocate big arrays unsupported #335

Open
jjfumero opened this issue Feb 12, 2024 · 0 comments
Open

Allocate big arrays unsupported #335

jjfumero opened this issue Feb 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working runtime

Comments

@jjfumero
Copy link
Member

Describe the bug

When running Execution Plans with large allocations (e.g., Arrays with 1>= GBs), the TornadoVM runtime throws an exception regarding memory, even though the memory usage is set to large buffers:

tornado-test -V --fast --jvm="-Dtornado.device.memory=2048MB" uk.ac.manchester.tornado.unittests.multithreaded.MultiThreaded 
tornado --jvm "-Xmx6g -Dtornado.recover.bailout=False -Dtornado.unittests.verbose=True -Dtornado.device.memory=2048MB"  -m  tornado.unittests/uk.ac.manchester.tornado.unittests.tools.TornadoTestRunner  --params "uk.ac.manchester.tornado.unittests.multithreaded.MultiThreaded"
WARNING: Using incubator modules: jdk.incubator.vector
Test: class uk.ac.manchester.tornado.unittests.multithreaded.MultiThreaded
	Running test: test01                     ................  [FAILED] 
		\_[REASON] Unable to allocate 1073741848 bytes of memory.

Expected behavior

The TornadoVM runtime should either be able to allocate large buffers, or launch another type of exception that specifies that the new size is not supported. For example, in some platforms (like OpenCL), this might not be possible.

Computing system setup (please complete the following information):

  • OS: Fedora 39: 6.6.14-200.fc39.x86_64
  • OpenCL and Driver versions: OpenCL 3.0 CUDA 12.3.99
  • If applicable, PTX and CUDA Driver versions
  • If applicable, Level Zero & SPIR-V Versions
  • TornadoVM commit id: 77dfc9b
@jjfumero jjfumero self-assigned this Feb 12, 2024
@jjfumero jjfumero added bug Something isn't working runtime labels Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working runtime
Projects
Status: No status
Development

No branches or pull requests

1 participant