ATI OpenCL: Handling multiple GPUs

Message boards : API : ATI OpenCL: Handling multiple GPUs
Message board moderation

To post messages, you must log in.

AuthorMessage
Ken_g6

Send message
Joined: 29 May 07
Posts: 11
Message 34340 - Posted: 24 Aug 2010, 3:25:36 UTC

Compared to my last post, this should be an easy one. I'm looking at converting that CUDA app to OpenCL for ATI, but looking at the atiopencl example app in the BOINC source code, I'm confused. The standard way to handle multiple GPUs in BOINC with CUDA is to pass in a --device parameter and select the given device number. I don't see any such parameter in atiopencl.cpp.

So how is the case of multiple GPUs supposed to be handled? Should I create one thread per compatible GPU? Should I just ignore the problem? Or did I miss something?

Thanks!
ID: 34340 · Report as offensive
Ken_g6

Send message
Joined: 29 May 07
Posts: 11
Message 34369 - Posted: 26 Aug 2010, 1:31:00 UTC - in response to Message 34340.  

Found it! Apparently the --device parameter is common to all GPU apps.

Perhaps I should file a bug report for the example atiopencl app.
ID: 34369 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15492
Netherlands
Message 34372 - Posted: 26 Aug 2010, 2:01:06 UTC - in response to Message 34369.  

Or email the person writing the OpenCL documentation. See your PM. :)
ID: 34372 · Report as offensive

Message boards : API : ATI OpenCL: Handling multiple GPUs

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.