doe300 / VC4CL

OpenCL implementation running on the VideoCore IV GPU of the Raspberry Pi models
MIT License
729 stars 81 forks source link

Error running #62

Closed aaguiar96 closed 5 years ago

aaguiar96 commented 5 years ago

Hello.

I installed all in ubuntu 18.04 and confirmed that VC4C is working. However, while creating a cl::Buffer I get this error message:

[VC4CL] test_cl.o: ioctl_set_msg failed: -1
[VC4CL] Error in mbox_propertie: Inappropriate ioctl for device

Any idea what this may be? Thanks in advance.

doe300 commented 5 years ago

Did you install Raspbian or a "vanilla" Ubuntu?

OSes other than Raspbian do not provide the mailbox driver and the accompanying character device to communicate with the firmware.

aaguiar96 commented 5 years ago

I installed Ubuntu because I need to work on it...

Is it possible to install those things in Ubuntu?

doe300 commented 5 years ago

You will need to provide the Raspberry PI userland and firmware and also probably the correct kernel module, see here and here.