no other changes than linking to opencl.dll works on windows. changing i2d =: ] segfaults.
Looks like an interesting approach overall. Complete control of opencl programs from J. It looks like considerable work to automate out the repetition, but I can almost see how to write C code from J templates. The work would also be useful for TCC dynamic compilation. ----- Original Message ----- From: bill lam <[email protected]> To: Programming forum <[email protected]> Cc: Sent: Sunday, November 15, 2015 6:33 PM Subject: Re: [Jprogramming] opencl on android you should link to opencl.dll, the others are icd (installable client driver). you can select vendor devices by twisting the first 2 lines, clGetPlatformIDs 1; (platform=. ,_1); <<0 clGetDeviceIDs ({.platform); ({.@i2d _1); 1; (dev=. ,_1); <<0 icd does not apply to android because google had killed official support of opencl in favor of his own renderscript, so that developers have to link to actual vendor's driver. > just replace every d with l You mean function signature parameters d with l?... seems like a surprising substitution. On windows, I have opencl.dll in system32 and system. And also have various versions of amd_opencl(32/64).dll. Do I just link to just opencl.dll, and it will magically delegate to the right vendor's implementation? ----- Original Message ----- From: bill lam <[email protected]> To: 'Pascal Jasmin' via Programming <[email protected]> Cc: Sent: Sunday, November 15, 2015 2:37 AM Subject: Re: [Jprogramming] opencl on android Location of library depends on platform. It think it should work on J32. It is simpler on J64, just replace every d with l and change i2d to ] . In desktop, both CPU and GPU can provide devices, you may to want to specify CPU or GPU in getting the device ID. Вс, 15 ноя 2015, jprogramming написал(а): > haven't tested on android yet, but it doesn't work on windows... I guess intentionally. > > Would the signatures be the same (or very close) on desktops... just the library locations different? > > ________________________________ > From: bill lam <[email protected]> > To: jprogramming <[email protected]> > Sent: Sunday, November 15, 2015 1:27 AM > Subject: [Jprogramming] opencl on android > > > A demo script for running opencl on android, it should ouput > 1 0 or 1 delta. > > Note that google does not want to you to run opencl on android > so that this script may not work even if your android device > is the newest flagship model. Search for "opencl" in google play > for some apps that can check for opencl capability. > > Please report if your devices support opencl but this script failed. > > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
