Go to advanced search

by doe300
Wed Aug 22, 2018 3:40 pm
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

What mining program do you use? I couldn't find any cgminer which uses OpenCL.
Zenitur wrote:Although, the GPU had some heat when cgminer was started
What do you mean? Actual heat or usage?
by doe300
Sun Aug 19, 2018 2:37 pm
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

Result without sudo: [...] I know that requiring root access to run an OpenCL program is not a good idea. But there are limitations, which are hard/impossible to go around. So for now, programs using VC4CL will always require admin rights. Result WITH sudo: [...] See here , also for more bugs/updat...
by doe300
Wed Apr 11, 2018 3:57 pm
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

But it does not work. When I start to render something it crashes immediately and telling "bus access error"...but I do not know if that is driver-related or caused by Mandelbulber anyhow. I don't know where the error comes from. It sounds like a component close to the hardware (maybe Mailbox inter...
by doe300
Sat Mar 17, 2018 7:01 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

I updated the instructions here to download the nightly builds.

Why did you compile GCC 6 from source? The latest Raspbian OS already includes GCC 6.3 by default.
by doe300
Sat Feb 17, 2018 10:20 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

@doe300 very impressive work! though i suspect you have a lot more to do if you actually plan on finishing it.. Thanks. Definitively, especially in the compiler and standard-library. pocl supports other than CPU devices - in fact it supports three (NVidia cards via our CUDA backend, certain AMD har...
by doe300
Fri Jan 26, 2018 11:59 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

The ICD-loader should find the libVC4CL.so, maybe it cannot load it.
Can you print the results of ldd /usr/local/lib/libVC4CL.so and see if all required libraries are found?

Can you also check if the programs v3d_info, v3d_dump_analyzer or VC4C work?
by doe300
Fri Jan 26, 2018 10:39 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

This all executes correctly and I've got all the supporting packages installed. I installed the newer clinfo from source. Running sudo clinfo returns 0 platforms :-( See here , for the ICD loader to detect the implementation, there needs to exist a file in /etc/OpenCL/vendors/ with a single line co...
by doe300
Tue Jan 16, 2018 9:42 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

What are your thoughts on this regarding the RPi? Is that something that could also be benchmarked? Since there exists an OpenGL implementation for the RPi running on the VC4 as well as the VC4CL implementation, their relative performance could be tested with a benchmark yielding comparable results...
by doe300
Mon Jan 15, 2018 8:40 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

Back to the pocl interop question; IIRC OpenCL has support for multiple devices/contexts, so we could have one CPU device and one GPU device available for executing queues? Yes, if both pocl and VC4CL are configured with the ICD loader, you can query a cl_platform for each implementation and then e...
by doe300
Fri Jan 12, 2018 8:31 pm
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

The docker image we use includes the building of the SPIRV-LLVM in its last lines lines. A more simpler and faster version would be: mkdir -p /opt/SPIRV-LLVM/build && cd /opt/SPIRV-LLVM/build cmake ../ -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_RUNTIME=Off -DLLVM_INCLUDE_TESTS=Off -DLLVM_INCLUDE_EXAMPL...
by doe300
Thu Jan 11, 2018 12:04 pm
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

Is there a pre-compiled version or package of your compiler and libs available (and where) for the RaspberryPi 3? This would be the easiest way for me (sudo apt-get ;-)) Yes there is, but is it not that straight-forward yet as I want it to be (see issue ): Currently, you will need to download SPIRV...
by doe300
Wed Jan 03, 2018 5:57 pm
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

RPF has told me the QPU cannot access the GPIO peripherals but the TMU have memory access, does it include the peripheral registers? I don't know, bit I highly doubt that. Afaik, the periphery registers are not located in the physical memory, but are somehow mapped into the virtual memory address r...
by doe300
Sat Dec 30, 2017 9:58 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

merlz42 wrote:
Thu Dec 28, 2017 4:06 am
Is there a development channel on irc/discord or something?
No there isn't at the moment. If you have any questions, you could ask them in an issue at one of the github projects or write me a private message on this board.
by doe300
Sat Dec 23, 2017 11:31 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

As promised, my Master's thesis for the VC4CL project is now available at github . A lot of things changed since I finished my thesis, so the text might be outdated on some places. Notable changes: memory is no longer loaded via the VPM, but the TMU resulting in a huge speed-up (see below) as well a...
by doe300
Sat Dec 09, 2017 9:11 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

Do you think it will be possible to do some of the 64 bit type support in software? (this could help with compatibility even if it's not fast) Possible yes, but it probably won't be implemented any time soon, at least not by me. If anyone else wants to support (u)long data-types (double would be wa...
by doe300
Sun Dec 03, 2017 4:12 pm
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

Does VC4CL play well with OpenGL ES and video encoder software under Raspbian? When using the Mailbox to start OpenCL kernels, VC4CL should be able to run beside other libraries using the Mailbox-interface to reserve GPU-memory and start kernels. The global mutex in the mailbox-driver makes sure, o...
by doe300
Sun Dec 03, 2017 11:17 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

Follow up question: The QPU shares memory with the CPU, it has DMA, so naively I would expect similar memory bandwidth. Somehow the QPU is much slower, is that really a HW limitation, or are there still some improvements in SW possible? In the graph I posted, there are 2 benchmarks related to memor...
by doe300
Fri Dec 01, 2017 11:25 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

jcyr wrote:
Fri Dec 01, 2017 5:10 am
Wonder if it'd support something like ethminer in OpenCL mode?
If you are referring to https://github.com/ethereum-mining/ethminer, it won't work, since its OpenCL kernel requires 64-bit data-types (ulong), which are not supported.
by doe300
Thu Nov 30, 2017 11:59 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

Could you comment on how it compares to PoCL? In my Master's thesis I included this comparison of the clpeak-results with PoCL (PoCL values were not actually run, but taken from here ): Performance.png Left is the floating-point test (in GFLOPS), in the middle the memory-bandwidth and right the tra...
by doe300
Thu Nov 02, 2017 1:30 pm
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

Latest version is failed with I haven't actually pushed the fixes for the errors you last reported yet. They should (almost all) now be fixed including this error. I still have some weird error in TestVC4CL, in the TestExecutions test-case, where the a constant value suddenly changes within a funct...
by doe300
Tue Oct 31, 2017 7:52 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

Have you updated the OpenCL-headers package or clang after building the PCH file (via vc4cl-stdlib)? If so, you might need to rebuilt it, by deleting include/VC4CLStdLib.pch in the VC4C project and re-running the target vc4cl-stdlib. Since the PCH (precompiled header) is an internal state of the LLV...
by doe300
Mon Oct 30, 2017 7:11 pm
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

The TestVC4CL failures (e.g. in TestProgram) are partly because I haven't updated TestVC4CL in a while. I will fix, update and extend the TestVC4CL tests the next days. The error in TestSystem is due to the V3D register somehow having the wrong values. In this case, the value is expected to list 16 ...
by doe300
Sat Oct 28, 2017 12:18 pm
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

sibnick wrote:
Fri Oct 27, 2017 5:52 pm
Now I get following errors:
These should all be fixed with the latest github version, along with a lots of compiler warnings for both host-side projects.
by doe300
Thu Oct 26, 2017 7:26 pm
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

I can't build VC4C Can you give some advice? What version of LLVM/Clang do you have? Do you use the LLVM version from the Raspbian repositories? This looks like I broke the compilation with the default LLVM somewhere along the way (I personally almost exclusively use the SPIRV-LLVM). I will run mor...
by doe300
Thu Oct 19, 2017 9:45 am
Forum: Graphics programming
Topic: OpenCL on the VideoCore IV!
Replies: 78
Views: 29261

Re: OpenCL on the VideoCore IV!

The Pi 3 has bigger caches, could the code be made small enough to mostly work in those to avoid accessing the DDR? The size of the code depends on its purpose, so the compiler cannot force it to stay smaller than some limit. Also, VC4CL does not really mind the L2, instruction and uniform caches, ...

Go to advanced search