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

out of local memory: needed=32 bytes, available=0 bytes #193

Open
msaideroglu opened this issue Oct 14, 2024 · 0 comments
Open

out of local memory: needed=32 bytes, available=0 bytes #193

msaideroglu opened this issue Oct 14, 2024 · 0 comments

Comments

@msaideroglu
Copy link

I'm getting out of local memory: needed=32 bytes, available=0 bytes error from a test code with opae driver. Then I decided to check device properties with a test code.

void printAllDeviceInfo(cl_device_id device) {
    printf("\n=== Device Information ===\n");
    // Numeric Information
    printNumericInfo(device, CL_DEVICE_GLOBAL_MEM_SIZE, "Global Memory Size (Bytes)");
    printNumericInfo(device, CL_DEVICE_LOCAL_MEM_SIZE, "Local Memory Size (Bytes)"); }

gives

=== Device Information ===
Device Name : Vortex OpenGPU
Vendor : Vortex Group
Device Version : OpenCL 1.2 PoCL HSTR: vortex-riscv32-unknown-unknown-elf
Driver Version : 6.1-pre vortex_2.x-0-g81d0aeea0
OpenCL C Version : OpenCL C 1.2 PoCL
Global Memory Size (Bytes) : 4294967296
Local Memory Size (Bytes) : 1

How can I config Local Memory size? I tried to ensure I have the correct opae runtime for the FPGA target with
TARGET=fpga make -C runtime/opae
as descrived in altera_fpga_guide.md and it gives me

fatal error: fpga.h: No such file or directory
   16 | #include <fpga.h>

What is missing? Is altera_fpga_guide.md updated? Can you help me with this @tinebp?

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

No branches or pull requests

1 participant