Thread 'How to use GPU instead of CPU?'

Message boards : Questions and problems : How to use GPU instead of CPU?
Message board moderation

To post messages, you must log in.

AuthorMessage
Nevep
New member

Send message
Joined: 15 Aug 25
Posts: 1
Message 116633 - Posted: 15 Aug 2025, 20:16:01 UTC

Hello. I am the owner of the repository https://github.com/nevstas/ludmila

Can you help me please? I need advice. My script is using CPU for calculations. Is it possible to change the script so that the calculations are performed not on CPU but on GPU? I think it will be much faster on GPU than on CPU. I want to buy goolge colab pro, or just use GPU on my computer. I asked chatgpt how to change my script but without success. Python is not my main programming language, I am PHP developer. Thanks
ID: 116633 · Report as offensive     Reply Quote
robsmith
Volunteer tester
Help desk expert

Send message
Joined: 25 May 09
Posts: 1355
United Kingdom
Message 116637 - Posted: 16 Aug 2025, 6:37:13 UTC - in response to Message 116633.  

While using a GPU may be faster than using a CPU there are a lot of things to consider.
GPUs are very good at highly repetitive "simple" calculations that can be done in parallel, but programming them is very different, and requires the use of the requisite tools and techniques. I don't know of any Python tools for GPUs (they may exist, it's just that I haven't looked for them), most GPU programming appears to use some form of C/C++ with extensions and libraries.

Good luck.
ID: 116637 · Report as offensive     Reply Quote

Message boards : Questions and problems : How to use GPU instead of CPU?

Copyright © 2025 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.