Very slow OpenCL execution time (with example code).

Moderator: dar

Very slow OpenCL execution time (with example code).

Postby CyberHiPriest » Tue Apr 26, 2016 2:47 pm

Attachments
raymarch.tar.gz
raymarching example code
(2.56 KiB) Downloaded 3016 times
Server park:
Parallella Z7010 w/ E16G03 (microserver) with Linaro Ubuntu 15.04
PowerPC405 board with custom Linux 2.6.35
PowerPC e300c3 board with custom Linux 2.6.38
Marvell 88F6192 board with Arch Linux
MIPS64r3 board with custom debian Linux 2.2.27
User avatar
CyberHiPriest
 
Posts: 4
Joined: Tue Apr 26, 2016 2:12 pm

Re: Very slow OpenCL execution time (with example code).

Postby jar » Tue Apr 26, 2016 8:46 pm

The OpenCL startup time is problematic because the eSDK serial loader is slow. This is being addressed in COPRTHR 2 (https://arxiv.org/abs/1604.04207). It's going to get much better soon.

Alternatively, you need to you something called "persistent threads" if your clforka() call is inside a loop. Basically, move the loop inside the kernel device code instead of the host code. I have not looked at your code.
User avatar
jar
 
Posts: 295
Joined: Mon Dec 17, 2012 3:27 am

Re: Very slow OpenCL execution time (with example code).

Postby CyberHiPriest » Wed Apr 27, 2016 3:05 pm

Server park:
Parallella Z7010 w/ E16G03 (microserver) with Linaro Ubuntu 15.04
PowerPC405 board with custom Linux 2.6.35
PowerPC e300c3 board with custom Linux 2.6.38
Marvell 88F6192 board with Arch Linux
MIPS64r3 board with custom debian Linux 2.2.27
User avatar
CyberHiPriest
 
Posts: 4
Joined: Tue Apr 26, 2016 2:12 pm


Return to OpenCL

Who is online

Users browsing this forum: No registered users and 16 guests