PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

PGCL: how to enable dynamic OpenCL compilation
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Jan23



Joined: 12 Jul 2012
Posts: 3

PostPosted: Wed Jul 18, 2012 5:18 am    Post subject: PGCL: how to enable dynamic OpenCL compilation Reply with quote

Hi everyone,

could someone give me a hint on how to use the dynamic OpenCL compilation with pgcl? The reference page only tells me that "the dynamic compilation components must have been transferred to the remote Android device during the installation process", but it does not specify how to do that. Also, in the documentation on the installation I don't find information on this.

Thanks
Jan
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5815
Location: The Portland Group Inc.

PostPosted: Wed Jul 18, 2012 4:11 pm    Post subject: Reply with quote

Hi Jan,

The run time components are automatically installed on your Android device during the PGCL installation. The caveat is that you need to ensure that Android Debug Bridge (adb) is installed on the compilation host machine and has a running service to the networked Android device. Otherwise, the installation script will skip the run time installation on your device.

To fix, you will need to re-install PGCL after you have configured adb and your Android device in order to install the run-time components.

Information about adb can be found at: http://developer.android.com/tools/help/adb.html

Hope this helps,
Mat
Back to top
View user's profile
Jan23



Joined: 12 Jul 2012
Posts: 3

PostPosted: Thu Jul 19, 2012 5:25 am    Post subject: Reply with quote

Hi Mat,

thanks for your reply. I tried it once again as you suggested, but without success. Nevertheless, it gave me the idea to look into the install script where the problem is, and I noticed two commands were not working as expected: First, the "if test $copy_ret " seems to evaluate to false (although adb exists), and second (after commenting the if-condition), the "adb push" did not work correctly. I then tried the "adb push" by hand, and it worked fine - i. e., my problem is solved!

Jan
Back to top
View user's profile
Jan23



Joined: 12 Jul 2012
Posts: 3

PostPosted: Fri Jul 20, 2012 2:54 am    Post subject: Reply with quote

Hi,

with the help of a co-worker I figured out why it didn't work: As the "install" script writes in in /opt/, I started it using "sudo". But I had not included adb in root's PATH, so the calls to adb made by the script did not work (neither the "which adb" nor the "adb push").
Perhaps this issue can be addressed in the PGCL reference pages.

Jan
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5815
Location: The Portland Group Inc.

PostPosted: Fri Jul 20, 2012 10:54 am    Post subject: Reply with quote

Thanks Jan23, I'll pass this info along.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group