Re: [beagleboard] Re: bbx15: v4.4.x + OpenCL
On Sat, Oct 29, 2016 at 5:43 PM, Christopher Hansenwrote: > OK, I found my problem and I fixed it. I had a "bad PPA" I needed to remove > in order for the update_kernal.sh script to complete properly. Here's what I > get from the example code: > > 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.007877 secs > DSP (OpenCL NDRange kernel): 0.007614 secs > OpenCL-DSP speedup : 1.034475 > > > Is that the expected result? Yeah, i was getting around 1.1x on v4.4.x When i last tried ti's sdk (v4.4.x based on the Alpha -X15 (no support for the rev b yet)) i was getting around 0.7/0.8 "speedup"... Back in v4.1.x (about a year ago, with the alpha-x15) i thought it was around 3x/4x speedup So there's definitely a speed regression, (maybe we are in a slow clock state for the dsp?) But it atleast it's working again... ;) Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYgddimrvwV-CDEtz3shgpCo8ioSbCGVYygddG1SLb7DSA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Re: bbx15: v4.4.x + OpenCL
OK, I found my problem and I fixed it. I had a "bad PPA" I needed to remove in order for the update_kernal.sh script to complete properly. Here's what I get from the example code: 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.007877 secs DSP (OpenCL NDRange kernel): 0.007614 secs OpenCL-DSP speedup : 1.034475 Is that the expected result? Chris On Saturday, October 29, 2016 at 11:08:48 AM UTC-7, robert nelson wrote: > On Sat, Oct 29, 2016 at 11:53 AM, Robert Nelson> wrote: > > On Sat, Oct 29, 2016 at 11:40 AM, Christopher Hansen > > wrote: > >> I get this error: > >> > >> modprobe: FATAL: Module cmemk not found in directory > >> /lib/modules/4.4.23-ti-r51 > >> > >> Any suggestions? > > > > Well, that's expected on 4.4.23-ti-r51 ;) > > > > Like i mentioned: > > > > cd /opt/scripts/tools/ > > git pull > > sudo ./update_kernel.sh > > sudo reboot > > For background, turns out the cmemk module as written doesn't like to > be loaded on a kernel built for THUMB2.. > > That was one of the big changes i made last week.. > > Regards, > > -- > Robert Nelson > https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/bcb78ddb-aacf-4610-b9ec-4801723ea8bb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Re: bbx15: v4.4.x + OpenCL
On Saturday, October 29, 2016 at 11:08:48 AM UTC-7, robert nelson wrote: > On Sat, Oct 29, 2016 at 11:53 AM, Robert Nelson> wrote: > > On Sat, Oct 29, 2016 at 11:40 AM, Christopher Hansen > > wrote: > >> I get this error: > >> > >> modprobe: FATAL: Module cmemk not found in directory > >> /lib/modules/4.4.23-ti-r51 > >> > >> Any suggestions? > > > > Well, that's expected on 4.4.23-ti-r51 ;) > > > > Like i mentioned: > > > > cd /opt/scripts/tools/ > > git pull > > sudo ./update_kernel.sh > > sudo reboot > > For background, turns out the cmemk module as written doesn't like to > be loaded on a kernel built for THUMB2.. > > That was one of the big changes i made last week.. > > Regards, > > -- > Robert Nelson > https://rcn-ee.com/ I followed those steps, but I am on the 4.4.23-ti-r51 kernel. What kernel are you using? How do I get there? -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/916fbc64-f443-426b-bb91-70b57d29e034%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Re: bbx15: v4.4.x + OpenCL
On Sat, Oct 29, 2016 at 11:53 AM, Robert Nelsonwrote: > On Sat, Oct 29, 2016 at 11:40 AM, Christopher Hansen > wrote: >> I get this error: >> >> modprobe: FATAL: Module cmemk not found in directory >> /lib/modules/4.4.23-ti-r51 >> >> Any suggestions? > > Well, that's expected on 4.4.23-ti-r51 ;) > > Like i mentioned: > > cd /opt/scripts/tools/ > git pull > sudo ./update_kernel.sh > sudo reboot For background, turns out the cmemk module as written doesn't like to be loaded on a kernel built for THUMB2.. That was one of the big changes i made last week.. Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYjbYRvSvHDCwf-C0jwYw-%3D7gutXMV9HDFoNbomuiW_ZVg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Re: bbx15: v4.4.x + OpenCL
On Sat, Oct 29, 2016 at 11:40 AM, Christopher Hansenwrote: > I get this error: > > modprobe: FATAL: Module cmemk not found in directory > /lib/modules/4.4.23-ti-r51 > > Any suggestions? Well, that's expected on 4.4.23-ti-r51 ;) Like i mentioned: cd /opt/scripts/tools/ git pull sudo ./update_kernel.sh sudo reboot Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYjmYvdMF5rrnWSb-AuT4DEPV4GHqqyRHcP8-%2BAAG3MDfg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.