Cuda or OpenCL?

Message boards : GPUs : Cuda or OpenCL?
Message board moderation

To post messages, you must log in.

AuthorMessage
ProDigit

Send message
Joined: 8 Nov 19
Posts: 718
United States
Message 94093 - Posted: 8 Dec 2019, 14:52:54 UTC
Last modified: 8 Dec 2019, 14:53:05 UTC

Nvidia RTX/GTX GPUs, on Ubuntu 18.04/19.10:

Is installing CUDA beneficial for Boinc, or should I just stay with Nvidia OpenCL from the driver package?
ID: 94093 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5077
United Kingdom
Message 94096 - Posted: 8 Dec 2019, 15:01:34 UTC - in response to Message 94093.  

It depends on the project. Some write their applications in CUDA, some write them in Open CL, some write them in both (different applications, obviously).

BOINC handles both, so you'd be safest installing both. But I believe there's some doubt about OpenCL compatibility for some drivers at some projects...
ID: 94096 · Report as offensive
ProDigit

Send message
Joined: 8 Nov 19
Posts: 718
United States
Message 94212 - Posted: 12 Dec 2019, 2:17:28 UTC - in response to Message 94096.  

It depends on the project. Some write their applications in CUDA, some write them in Open CL, some write them in both (different applications, obviously).

BOINC handles both, so you'd be safest installing both. But I believe there's some doubt about OpenCL compatibility for some drivers at some projects...

Will CUDA interfere with OpenCL tasks?

I remember folding in the early days of CUDA, and some projects were slowed down on a GPU that was sharing data from a task from another GPU.
It wasn't working very efficient back then (on windows). I don't know if in Linux nowadays most of these issues are resolved?
ID: 94212 · Report as offensive
robsmith
Volunteer tester
Help desk expert

Send message
Joined: 25 May 09
Posts: 1283
United Kingdom
Message 94215 - Posted: 12 Dec 2019, 8:36:19 UTC

It all depends on how well the two applications have been written and how they manage memory and other GPU resources - generally they work quite well together but with a slight performance hit over two of the same.
ID: 94215 · Report as offensive

Message boards : GPUs : Cuda or OpenCL?

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.