Hey Everyone,
Finally got OpenCL working again on v4.4.x, lots of fun "dkms" module
issues, so ripped all those out..
mkbian@beaglebone:/usr/share/ti/examples/opencl/float_compute$ sudo
modprobe cmem
This example computes y[i] = M[i] * x[i] + C on single precision
floating point arrays of size 2097152
- Computation on the ARM is parallelized across the A15s using OpenMP.
- Computation on the DSP is performed by dispatching an OpenCL NDRange
kernel across the compute units (C66x cores) in the compute device.
Running.....
Average across 5 runs:
ARM (2 OpenMP threads) : 0.008669 secs
DSP (OpenCL NDRange kernel) : 0.007781 secs
OpenCL-DSP speedup : 1.114124
For more information on:
This Sunday's lxqt image will have all the fun bits..
For older images do this:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get remove dkms --purge #get rid of dkms/etc..
cd /opt/scripts/tools/
git pull
sudo ./update_kernel.sh
sudo reboot
cd /usr/share/ti/examples/opencl/float_compute/
sudo make
sudo modprobe cmemk
sudo ./float_compute
Regards,
--
Robert Nelson
https://rcn-ee.com/